B
Bill
Hello,
I put the number 1 in cell A1 and then select the cell. Then I run the
following code:
MsgBox ActiveCell.NumberFormat
varformat = ActiveCell.NumberFormat
x = ActiveCell.Value
x = Format(xbar, varformat)
MsgBox xbar
I get "General" as expected for the first message box, but I get "Ge0eral"
for the second. How come I don't get 1?
I want to read a format in a certain cell and apply that it to variable in
my code that I print out in the title of a chart.
Thanks.
Bill
I put the number 1 in cell A1 and then select the cell. Then I run the
following code:
MsgBox ActiveCell.NumberFormat
varformat = ActiveCell.NumberFormat
x = ActiveCell.Value
x = Format(xbar, varformat)
MsgBox xbar
I get "General" as expected for the first message box, but I get "Ge0eral"
for the second. How come I don't get 1?
I want to read a format in a certain cell and apply that it to variable in
my code that I print out in the title of a chart.
Thanks.
Bill