Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Kathy Kathy is offline
external usenet poster
 
Posts: 146
Default NUMBERS IN A TABLE

I created a table and need to find a quick way to have the dollar amounts
insert a comma automatically. It's getting very tedious inserting that comma
!!
  #2   Report Post  
Posted to microsoft.public.word.tables
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default NUMBERS IN A TABLE

Hi Kathy,

Word won't auto-format the numbers for you, but you can input the unformatted numbers (ie you don't even need to add the '$') then
select them and run a macro like:
Sub MakeCurrency()
Dim oCel As Cell
Dim oRng As Range
If Selection.Information(wdWithInTable) Then
For Each oCel In Selection.Cells
Set oRng = oCel.Range
oRng.MoveEnd Unit:=wdCharacter, Count:=-1
On Error Resume Next
If CDec(oRng.Text) Then oCel.Range.Text = Format(oRng.Text, "$#,##0.00")
Next
End If
End Sub

--
Cheers
macropod
[MVP - Microsoft Word]


"Kathy" wrote in message ...
I created a table and need to find a quick way to have the dollar amounts
insert a comma automatically. It's getting very tedious inserting that comma
!!


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
line numbers next to a table ... how? jlfetch Page Layout 5 December 18th 07 12:38 AM
Summing numbers not in a table Bondi Microsoft Word Help 4 January 26th 07 05:45 PM
table of contents page numbers without chapter numbers Bety at Keltec Microsoft Word Help 5 October 26th 06 12:48 AM
TOC for Tables. Page numbers are correct, Table numbers are not. Kristi Tables 4 July 31st 06 10:22 PM
Autoformatting Numbers in a Table Brady Finney Tables 1 February 25th 05 11:01 PM


All times are GMT +1. The time now is 06:26 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"