Table number formating.

J

Josh

Is there any way to programatically format table cells? For instance,
programatically make column "A" have a $#.00 or #.00 format.
 
C

Chuck

There isn't a way to set the number format of the column but you can enter
your numbers as "formulas":

Dim strYourNumber As String

'Use code to set value of strYourNumber eg:
strYourNumber = Inputbox("Enter number")

Selection.InsertFormula Formula:="=" & strYourNumber, NumberFormat:="#.00"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top