We all have great inner power. The power is self-faith. There's really an attitude to winning. You have to see yourself winning before you win. And you have to be hungry. You have to want to conquer.
I have a large quantity of text that I am manually cutting and pasting from Adobe pdf documents into an Excel worksheet. Some of the pasted rows contain data of interest while others do not.
I would like to write a piece of VBA code that will evaluate a row based on the value of the first character in column 1. If that character is not a number, delete the row. If that character is a number, leave the row alone and move to the next until a blank cell is found.
I have a pretty good idea of the logic pattern to use, but I need help with the VBA syntax.
Many thanks for your help.
Kevin Robertson
@Reply 2 years ago
Does the code in my screenshot below fit your needs?
Kevin Robertson
@Reply 2 years ago
Tom HenriksonOP
@Reply 2 years ago
That's exactly what I was thinking. Thank you, Kevin.
Kevin Robertson
@Reply 2 years ago
You're welcome.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Excel Forum.