Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My macro convert sell with value '0001' to '1'. Need help!!!
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Let us asume that cell A1 contains 0001 as a text string. The following
macro will convert to the number 1: Sub changeIt() Cells(1, 1).Value = Cells(1, 1).Value * 1 End Sub If, however, the 0001 is actually a number, then just change the format to remove the leading zeros. -- Gary''s Student "Zhanna" wrote: My macro convert sell with value '0001' to '1'. Need help!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |