vba insert rows
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA insert rows

VBA insert rows

resolvedResolved · Low Priority · Version 2003

replyReplyFri 15 Jan 2010, 15:33Delegate Tim said...

VBA insert rows

Could you help me with the code requirdd insert rows on multiple worksheets

For upcoming training course dates see: Pricing & availability

replyReplyWed 20 Jan 2010, 09:12Trainer Stephen said...

RE: VBA insert rows

Hi Steve

Thanks for your question.

Can you just clarify for me the following points.

1. Do you need to insert single or multiple rows?
2. If the later, are they grouped together, or spread over the entire sheet

Thanks

Stephen

replyReplyWed 20 Jan 2010, 15:42Delegate Tim said...

RE: VBA insert rows

Hi Stephen,

I have created some management accounts with a worksheet for each cost centre. If then we want to create a new line in the accounts, a new type of travel cost etc., I want to be able to insert a new line in each cost centres accounts and add into the line the name of the new cost and a formula.

Hope that is clearer.

Cheers

Tim

replyReplyWed 27 Jan 2010, 13:45Trainer Stephen said...

RE: VBA insert rows

Hi Tim

Thanks for the update.

I suggest the following approach

1. Use a "For each" loop to go to each worksheet in the workbook.
2. Within the loop (for each sheet), insert a new row in the appropriate place. The following is a sample of code for this.

Range("A2").Rows.Insert shift:=xlDown

3. set the new cost and formula as the values of the relevant cell.

Hope this helps

Regards

Stephen

 

 

Please browse our web site to find out more about
excel consultancy and other Microsoft training courses.

Excel tip:

Toggle Formulas and Results

Ctrl + 'The key above Tab with the

View all Excel hints and tips

article

What's Hot And What's Not In Word 2010

As part of the Microsoft Office 2010 suite, Word is the platform for a new set of editing and formatting tools giving you even greater control with text, design and layout. If you’re wondering whether it’s time to take the plunge, here are just a few of the new features to whet your appetite.

» Article: Course microsoft training word

forum postDuring the course we went through how to extract data from Project and importing it directly into excel. However, i cannot remember how to configure the report to show me how to show week by week planned progress information. How can i achieve this?

Th..

» Forum post: Extracting data from project into Excel


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

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

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training