NessPJ
Active Member
- Joined
- May 10, 2011
- Messages
- 422
- Office Version
- 365
Hello there,
I am using this code in my VBA routine:
Even though i use it, some of my data containing a result value of 02, 03, 04 etc. will end up showing like 2, 3, 4.
I would the result to always exist out of 2 digits. What am i doing wrong here?
I am using this code in my VBA routine:
Code:
Application.Workbooks(RTBook).Sheets(ATTargetSht).Range("BL3:BL" & LastRowPVTable).Formula = "=TEXT(MID(BN3,2,2),""00"")"
Application.Workbooks(RTBook).Sheets(ATTargetSht).Range("BL3:BL" & LastRowPVTable).Formula = Application.Workbooks(RTBook).Sheets(ATTargetSht).Range("BL3:BL" & LastRowPVTable).Value
Even though i use it, some of my data containing a result value of 02, 03, 04 etc. will end up showing like 2, 3, 4.
I would the result to always exist out of 2 digits. What am i doing wrong here?