Reputation: 11
I need to retrieve a number from a cell with the format e.g. cell A1 contains the number "001", but when I apply that to a variable it becomes "1". How do i retrieve "001"??
Tgtval = Range("A1")
Upvotes: 0
Views: 40
Reputation: 35863
Try using the Text property:
Text
Tgtval = Range("A1").Text
Upvotes: 1