excel course in london - macro recording
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel course in london - Macro recording

excel course in london - Macro recording

The UK's most regular instructor-led training courses.
Training information: excel course in london · Excel training london · Microsoft Excel Training London
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

Macro recording

Delia has attended:
Excel Advanced course
Excel VBA course
Excel VBA course

by - delegate Delia [2 posts] (2007 Mar 6 Tue, 17:02) replyReply

I want to use a macro to copy data down to fill in all the blank cells in the column below the data until there is a cell with data in in and then move down to the cell with data in it to copy the procedure.

When recording the macro I selected the range to copy to by using the shift+end+ the down arrow key, then went back up a cell. When I used the macro to copy the next entry down the macro only copied the same number of lines, and did not fill in all the blank cells.

How do I get it to fill all the blank cells?

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Aug 29 Fri Southwark 3 book now £224 £235
2003 2008 Sep 3 Wed Bloomsbury 5 book now £219 £235
2003 2008 Sep 5 Fri Bayswater 4 book now £195 £205
2002/XP 2008 Sep 10 Wed Tooting 0 FULL    
2003 2008 Sep 10 Wed Bloomsbury 5 book now £219 £235
2003 2008 Sep 12 Fri Southwark 7 book now £203 £230
Full Schedule: See all 127 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: Macro recording

by - trainer Richard platinum contributer[785 posts] (2007 Mar 12 Mon, 16:16) replyReply

Delia

Whenever I get a problem with a Marco that does not work out as I want it to, the first thing I think about is breaking the result down into a step by step process, and then going through it manually, as if I was going to be recording the macro.

From what you have described, Try the following:



Before you start recording the Macro, select ONE cell that contains the data you want to copy. (You can only select multiple cells if the destination is exactly the same number of cells or a multiple of the selected ones). Selecting one keeps it simple for the moment.

1. Start recording the maco. Ensure you click on the RELATIVE REFERENCING button next to the STOP button on the Macro toolbar. (This ensures that Excel always selects the cell you choose prior to running the macro, NOT an absolute cell - ie. not $A$4).

2. COPY the Cell using CTRL+C

3. Navigate to the empty cell using the keyboard.
- (END+DOWN, then DOWN key again).

4. Navigate to the empty cell using the keyboard.
- (SHIFT+END+DOWN key, then holding SHIFT, the UP key ONCE).

5. Paste the copied cell using CTRL+V

6. Click once on the ORIGINAL cell you selected and copied. (This will loop the macro, so when you run it again, excel will start at step 2, and run the macro again.

DONE.


Let me know how you do. It may take some testing. You have to think for and like Excel to get it right. Adding step 6 in makes the whole thing work very fast. Once you have the correct result in the macro, you can just hold down the shortcut key and Excel will do all your work for you.

Richard


Related articles

· Microsoft Excel Training - Numerical excellence for all
· Microsoft Office and the Small Business: Part 1 Excel
· Microsoft Excel's Best Kept Secret
· Advanced level training: Microsoft Excel and the Web
· How to Create Better Excel Spreadsheets: Part Two

Excel tip:

Toggle Formulas and Results

Ctrl + 'The key above Tab with the ¦ symbol on it'

This allows you to toggle back and forth between displaying formulas and displaying results.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz