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 8 months ago
Does the code in my screenshot below fit your needs?
Kevin Robertson 8 months ago
Tom HenriksonOP 8 months ago
That's exactly what I was thinking. Thank you, Kevin.
Kevin Robertson 8 months 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.
The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.