Computer Learning Zone CLZ Access Excel Word Windows

Avoidable human misery is more often caused not so much by stupidity as by ignorance, particularly our ignorance about ourselves.

-Carl Sagan
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Excel
Back to Excel Forum    Comments List
Upload Images   Link   Email  
VBA delete row based on cell
Tom Henrikson 
       
8 months ago
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 Henrikson OP 
       
8 months ago
That's exactly what I was thinking.  Thank you, Kevin.
Kevin Robertson 
          
8 months ago
You're welcome.

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.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/13/2025 12:10:33 AM. PLT: 1s