rjmccafferty1
MIS
Within an Excel macro, I want to check if the first letter of a cell entry is the letter z in small case.
I tried:
If Left(activecell.offset(-1,5).characters.value,1)="z" Then
But this returns an error.
Following the pattern of someone's answer on a different help site, I then tried to just go to the cell and use the following code:
If Left(activecell.characters.value,1)="z" Then
But again I got an error message.
How can I check to see if the first letter of an entry begins with the letter "z" within an Exel macro as the condition of an if statement?
I tried:
If Left(activecell.offset(-1,5).characters.value,1)="z" Then
But this returns an error.
Following the pattern of someone's answer on a different help site, I then tried to just go to the cell and use the following code:
If Left(activecell.characters.value,1)="z" Then
But again I got an error message.
How can I check to see if the first letter of an entry begins with the letter "z" within an Exel macro as the condition of an if statement?