Hi,
I'm relatively new to VBA in Excel and I've got an issue where that I need to copy the RESULT of a format, and use it in my calculations. Another way to phrase this would be that I need to make the format apply to the underlying data, not just change how it is displayed.
Is there an easy way to do this? Or am I going to have to write another macro to compute this value?
Thanks in advance!
Charles
You can use the text value of a cell in VBA
so say for ex. A1 contains the value 2 but has a custom format applied to it of: "S"000Code:Range("A2").Value = Range("A1").Text
such that it appears as S002, the above would set A2 to be S002 rather than 2.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks