best training excel intermediate - vba
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » best training excel intermediate - VBA

best training excel intermediate - VBA

resolvedResolved · Low Priority · Version Standard

replyReply Fri 19 Oct 2007, 15:45Delegate Dominique said...

Dominique has attended:
Excel VBA Intro Intermediate course

VBA

How do I find blank rows of data and delete them?

For upcoming training course dates see: Pricing & availability

replyReply Tue 23 Oct 2007, 14:46Trainer Amanda said...

RE: VBA

Hi Dominique

Thank you for your question. As this requires a reasonably lengthy bit of coding, I'll refer to you to a page that shows the code. Please bear in mind that I haven't tested this myself so try it on a small spreadsheet first to see if it works.

The code should:
- delete all blank rows in the worksheet you specified or in the active sheet except rows
- that contain formulas
- that are precedents of a formula in a cell, e.g. if a formula in A6 references cells in rows 1 to 5, rows 1 to 5 will not be deleted.

For the code, please see www.cpearson.com/excel/deleting.htm

I hope this works for you.
Amanda

 

Excel tip:

Hiding Formulae in the Formula Bar

It is possible to protect the contents of a cell reference(s) from amendment by applying cell protection. The contents of the cell reference can also be stopped from displaying in the formula bar.

Step 1: Select Format > Cells > Protection.

Step 2: Tick Hidden option. Ensure Locked is ticked

Step 3: Select Tools > Protection > Protect Sheet

(Ensure "Protect worksheet and contents of locked cells" is ticked)


View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard