A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formating a cell so that it contains only numbers



 
 
Thread Tools Display Modes
  #1  
Old March 13th, 2008, 06:45 AM posted to microsoft.public.word.tables
sugarmac
external usenet poster
 
Posts: 4
Default Formating a cell so that it contains only numbers

I have created a table on Word 2004 for Mac and I need to make a row of cells
that can contain only numbers. I don't need any formulas, just a number
containing two decimal places. Eg. If I type 10 into the cell, I want it to
automatically change it to 10.00. Does this make sense? In Excel you go to
"Format - Cells... - Number" and it gives you the option to place the
amount of decimal points. Is this even possible in Word? I can't seem to find
anything in the help files – it just tells me how to create formulas with
decimal places.
  #2  
Old March 13th, 2008, 07:25 AM posted to microsoft.public.word.tables
macropod
external usenet poster
 
Posts: 1,231
Default Formating a cell so that it contains only numbers

Hi sugarmac,

The only ways to get that functionality in Word are to:
a) set the table up with formfields for numeric data entry, and protect the document for forms, or
b) embed an Excel workbook in the document with the appropriate cell formatting.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"sugarmac" wrote in message ...
I have created a table on Word 2004 for Mac and I need to make a row of cells
that can contain only numbers. I don't need any formulas, just a number
containing two decimal places. Eg. If I type 10 into the cell, I want it to
automatically change it to 10.00. Does this make sense? In Excel you go to
"Format - Cells... - Number" and it gives you the option to place the
amount of decimal points. Is this even possible in Word? I can't seem to find
anything in the help files – it just tells me how to create formulas with
decimal places.


  #3  
Old March 13th, 2008, 07:36 AM posted to microsoft.public.word.tables
sugarmac
external usenet poster
 
Posts: 4
Default Formating a cell so that it contains only numbers

Thanks, I'll give b) a try!

"macropod" wrote:

Hi sugarmac,

The only ways to get that functionality in Word are to:
a) set the table up with formfields for numeric data entry, and protect the document for forms, or
b) embed an Excel workbook in the document with the appropriate cell formatting.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"sugarmac" wrote in message ...
I have created a table on Word 2004 for Mac and I need to make a row of cells
that can contain only numbers. I don't need any formulas, just a number
containing two decimal places. Eg. If I type 10 into the cell, I want it to
automatically change it to 10.00. Does this make sense? In Excel you go to
"Format - Cells... - Number" and it gives you the option to place the
amount of decimal points. Is this even possible in Word? I can't seem to find
anything in the help files – it just tells me how to create formulas with
decimal places.



  #4  
Old March 13th, 2008, 05:00 PM posted to microsoft.public.word.tables
sugarmac
external usenet poster
 
Posts: 4
Default Formating a cell so that it contains only numbers

Hi macropod

What about numeric picture (\#) field switches, do those work without
formulas?

Thanks for any feedback!


"macropod" wrote:

Hi sugarmac,

The only ways to get that functionality in Word are to:
a) set the table up with formfields for numeric data entry, and protect the document for forms, or
b) embed an Excel workbook in the document with the appropriate cell formatting.

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"sugarmac" wrote in message ...
I have created a table on Word 2004 for Mac and I need to make a row of cells
that can contain only numbers. I don't need any formulas, just a number
containing two decimal places. Eg. If I type 10 into the cell, I want it to
automatically change it to 10.00. Does this make sense? In Excel you go to
"Format - Cells... - Number" and it gives you the option to place the
amount of decimal points. Is this even possible in Word? I can't seem to find
anything in the help files – it just tells me how to create formulas with
decimal places.



  #5  
Old March 13th, 2008, 05:40 PM posted to microsoft.public.word.tables
Jean-Guy Marcil[_2_]
external usenet poster
 
Posts: 374
Default Formating a cell so that it contains only numbers

"sugarmac" wrote:

Hi macropod

What about numeric picture (\#) field switches, do those work without
formulas?


The key word here is "field". They only work with fields. It would a lot
more trouble to insert fields with the numerical values you want than just
type something like "10.00."
As macropod wrote, the only way fields will work automatically (I.e. by the
user just typing in the field without the field being replaced by what is
being typed) is to work with a protected form.
  #6  
Old March 13th, 2008, 06:42 PM posted to microsoft.public.word.tables
sugarmac
external usenet poster
 
Posts: 4
Default Formating a cell so that it contains only numbers

OK. Thanks.

"Jean-Guy Marcil" wrote:

"sugarmac" wrote:

Hi macropod

What about numeric picture (\#) field switches, do those work without
formulas?


The key word here is "field". They only work with fields. It would a lot
more trouble to insert fields with the numerical values you want than just
type something like "10.00."
As macropod wrote, the only way fields will work automatically (I.e. by the
user just typing in the field without the field being replaced by what is
being typed) is to work with a protected form.

  #7  
Old March 14th, 2008, 06:56 AM posted to microsoft.public.word.tables
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Formating a cell so that it contains only numbers

I guess you could use a macro attached to a keyboard shortcut eg

Sub InsertNumberAsField()
Dim sNum As String
sNum = InputBox("Enter number")
If sNum = "" Then Exit Sub
sNum = sNum & " \# ,0.00"
With Selection.Fields
.Add Range:=Selection.Range, Type:=wdFieldEmpty, _
Text:="= " & sNum, _
PreserveFormatting:=False
.Update
End With
ActiveWindow.View.ShowFieldCodes = False
End Sub

but it is simpler just to type the number correctly.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



sugarmac wrote:
OK. Thanks.

"Jean-Guy Marcil" wrote:

"sugarmac" wrote:

Hi macropod

What about numeric picture (\#) field switches, do those work
without formulas?


The key word here is "field". They only work with fields. It would a
lot more trouble to insert fields with the numerical values you want
than just type something like "10.00."
As macropod wrote, the only way fields will work automatically (I.e.
by the user just typing in the field without the field being
replaced by what is being typed) is to work with a protected form.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.