+ Reply to Thread
Results 1 to 4 of 4

Insrert row in a range which is not on the active worksheet.

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Insrert row in a range which is not on the active worksheet.

    Hello,
    In one of my worksheets, I have a range called “Summary” .
    I want a code which would insert a new Entire.Row into the “Summary” range.
    When the inserting takes place, my ActiveSheet is not the one which has the “Summary” and I want to achieve this by not having to activate that sheet.
    Could you please advise?
    Thanks

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Insrert row in a range which is not on the active worksheet.

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Insrert row in a range which is not on the active worksheet.

    mehmetcik,
    it is almost there...
    Te code is inserting a row in the "Target" but what I need, is to insert a row in a range called "Summary" which is in the "Target" worksheet.
    Thanks in advance!

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Insrert row in a range which is not on the active worksheet.

    This code will create an array:

    Please Login or Register  to view this content.
    SR(1) will give you the start column
    SR(2) will give you the start row
    SR(3) will give you the End column
    SR(4) will give you the End row

    So calculate the row you want to insert at and use the first code to insert there.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 07-03-2015, 04:27 AM
  2. Replies: 1
    Last Post: 07-07-2014, 09:19 AM
  3. [SOLVED] Copy/paste range of cells to first empty row of active list in another worksheet
    By wildecat666 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-06-2013, 03:45 PM
  4. [SOLVED] Copy range from the worksheet preceding the active worksheet
    By davidrias in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2013, 10:57 PM
  5. copy range from active worksheet to another workbook
    By omarq in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-03-2011, 06:21 PM
  6. Determining the selected range in a worksheet that is not the active worksheet
    By Gantenbein in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2009, 09:55 PM
  7. Range error when referencing non active worksheet
    By SP in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2005, 02:05 PM

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