I'm putting together some information in Excel (2007) via a macros which is run under a button click.
The resultant cells contain some numeric information - i.e. '£100.00', '£200.00', etc.
When these are displayed in Excel they show the small green triangle in the top left corner of the cell indicating there is an issue. When you hover over the warning sign next to the cell it displays "The number in this cell is formatted as text or preceded by an apostrophe". When the warning icon is clicked you get the option to 'Convert to Number' - which then removes the small green triangle top left in the cell.
How can this same trick ('Convert to Number' option) be done via VB code in a macros.
I've tried recording a macros but this trick is not recorded.
Any suggestions would be appreciated.
The resultant cells contain some numeric information - i.e. '£100.00', '£200.00', etc.
When these are displayed in Excel they show the small green triangle in the top left corner of the cell indicating there is an issue. When you hover over the warning sign next to the cell it displays "The number in this cell is formatted as text or preceded by an apostrophe". When the warning icon is clicked you get the option to 'Convert to Number' - which then removes the small green triangle top left in the cell.
How can this same trick ('Convert to Number' option) be done via VB code in a macros.
I've tried recording a macros but this trick is not recorded.
Any suggestions would be appreciated.