Paddington1881
Board Regular
- Joined
- Jan 12, 2005
- Messages
- 62
- Office Version
-
- 2016
- Platform
-
- Windows
Hi all
I've been tinkering with ways to include the LEFT function in a macro, but without success.
I'm trying to isolate the first 2 characters in an a cell, and then use that to go to a separate worksheet with the same 2 character name. For instance:
Cell A1 is "AD1234". I want the macro to recognise the "AD" part and go to a worksheet called "AD" and do some stuff (lookups etc).
I thought it would be quite easy but I'm absolutely stumped. I'm going through Excel VBA For Dummies now, but I get the feeling I'm a level below dummy cos I'm just not getting it. Is what I'm trying to do possible?
Any pointers much appreciated, as always.
Thanks
Darren
I've been tinkering with ways to include the LEFT function in a macro, but without success.
I'm trying to isolate the first 2 characters in an a cell, and then use that to go to a separate worksheet with the same 2 character name. For instance:
Cell A1 is "AD1234". I want the macro to recognise the "AD" part and go to a worksheet called "AD" and do some stuff (lookups etc).
I thought it would be quite easy but I'm absolutely stumped. I'm going through Excel VBA For Dummies now, but I get the feeling I'm a level below dummy cos I'm just not getting it. Is what I'm trying to do possible?
Any pointers much appreciated, as always.
Thanks
Darren