Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way is to just reset the numberformat to general and plop the value back in
the Option Explicit Sub testme01() With activesheet.Range("b9") 'just test data! .NumberFormat = "@" 'make it text .Value = 1234 'do the real work .NumberFormat = "General" .Value = .Value End With End Sub Trevor Fernandes wrote: In the KB article Q291047 it is stated: Method 1: Use the Error Button If the cells in which numbers are displayed as text contain an error indicator in the upper-left corner, follow these steps: Click the cell that contains the error indicator. Click the error button next to the cell, and then click Convert to Number on the shortcut menu How can I do the same thing through VBA? Thanks Trevor *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comments Without Indicators; Displayed when Cells are Clicked | Excel Discussion (Misc queries) | |||
Hiding error indicators | Excel Discussion (Misc queries) | |||
Can one comment have two indicators? | Excel Discussion (Misc queries) | |||
Comment Indicators | Excel Worksheet Functions | |||
Comment Indicators | Excel Discussion (Misc queries) |