+ Reply to Thread
Results 1 to 4 of 4

Pasting based on Current Region but want spacer row betwen

  1. #1
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    259

    Pasting based on Current Region but want spacer row betwen

    Hello Everyone!

    So I've spent quite a bit of time giving this the old heave-ho but cannot seem to figure out how to do this in a way that doesn't upend everything.

    I have the following VBA code (that I somehow managed to cobble together by myself!):

    Please Login or Register  to view this content.
    And what this code does is copy the range from Column B to Au. There are 8 rows of data and my plus 1 also copies the spacer row (for the formatting) and pastes all this gobbledy-gook into another sheet starting at cell b9.

    I have already achieved having the ranges paste one after another but for the sake of aesthetics for the end user, I'd like to add a row between.

    The problem is, you guessed it, that that spacer row doesn't count in the currentregion in my second sheet and therefor only two entries get posted (the second just being over-written every time a new range is transferred).

    Any idea how to have my cake and eat it too?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pasting based on Current Region but want spacer row betwen

    How about just ...

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-23-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2013
    Posts
    259

    Re: Pasting based on Current Region but want spacer row betwen

    Hi Shg,

    The first time I tried to run it I received an error of "we can't do that to a merged cell."

    Tried removing the (3) (foolishly) and it over-wrote a static portion at the top of the sheet.

    Not sure why I received the merged cell error, I can attach the workbook if you think that'll be best?

    For any of the fields on the form that require user entry (through userform), I have unmerged cells that are centered across selection. The only merged cells are titles and formula cells.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pasting based on Current Region but want spacer row betwen

    I think you should not merge cells.

+ 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. [SOLVED] Using current region
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-10-2015, 04:39 PM
  2. select current region based on interior color
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2015, 11:59 PM
  3. Copying & pasting a current region to another sheet w/o actually copying.....
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2014, 09:08 PM
  4. Current Region through a function
    By Joakim N in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2014, 01:44 PM
  5. Replies: 1
    Last Post: 10-04-2007, 12:04 PM
  6. current region = name
    By by1612 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2007, 06:58 PM
  7. [SOLVED] Assigning name to current region
    By KDJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2005, 12: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