+ Reply to Thread
Results 1 to 3 of 3

Macro to insert rows within a specified range

  1. #1
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Question Macro to insert rows within a specified range

    I am using the below code for inserting rows in my worksheet. Rows 1 to 6 in the worksheet contain cells that have either label (headings) or notes. I do not want any row inserts to happen in this range.

    How should the below code be modified to accommodate this?

    Thanks in advance
    AGS

    Please Login or Register  to view this content.
    Last edited by asha3010; 03-10-2010 at 03:49 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Macro to insert rows within a specified range

    Hi AGS

    You could do that a couple of ways. You could lock those rows then protect the sheets; however, you'll end up with an ugly error message.

    You could add this to your code
    Please Login or Register  to view this content.
    I'm certain there are other ways do accomplish this.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    02-09-2010
    Location
    Constanta
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Macro to insert rows within a specified range

    Thank you so much John for the prompt response. Your code has addressed my issue

    Regards
    AGS

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1