How to insert rows in all worksheets using VB?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • premMS143
    New Member
    • Nov 2008
    • 75

    How to insert rows in all worksheets using VB?

    Hi all,

    Using VB,
    How to insert the required number of rows in all worksheets/selected sheets present in a workbook at a time.
    Say an example,
    I'm having an Excel file containing 15 worksheets.
    Now I want to insert 5 rows @ the beginning for all sheets.
    How to do so..?
    Could anyone help me. Pls…….

    Thanx & regards,.
    Last edited by debasisdas; May 28 '09, 12:37 PM. Reason: removed mail id
  • prabirchoudhury
    New Member
    • May 2009
    • 162

    #2
    hey

    have a look those tutorial/examples may be helpful .....

    Insert New row into Excel Using VB
    InsertRowAllShe ets()

    Comment

    • Nulli cedo
      New Member
      • Jun 2009
      • 9

      #3
      Originally posted by premMS143
      Hi all,

      Using VB,
      How to insert the required number of rows in all worksheets/selected sheets present in a workbook at a time.
      Say an example,
      I'm having an Excel file containing 15 worksheets.
      Now I want to insert 5 rows @ the beginning for all sheets.
      How to do so..?
      Could anyone help me. Pls…….

      Thanx & regards,.
      Hi,

      I guess you mean new empty rows or do you mean rows containing data.

      Comment

      • Nulli cedo
        New Member
        • Jun 2009
        • 9

        #4
        Hi I guess you mean new empty rows not rows containg data?

        Comment

        Working...