+ Reply to Thread
Results 1 to 5 of 5

Copy a range to a different sheet and offset it

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    Killeen, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Copy a range to a different sheet and offset it

    I am range on Sheet 3 that I copy and then try to paste on sheet 1 that is offset based on a counter. What should the code look like? I have tried to figure it out but I have hit a wall.

    Please Login or Register  to view this content.

    I know it is copying but I get a debug error when it copies.
    Last edited by pktrusty; 09-29-2010 at 09:24 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy a range to a different sheet and offset it

    If you're simply trying to paste the copied range to the bottom of the data on sheet1:

    Please Login or Register  to view this content.


    As per the Forum Rules, you must edit your post above and put code tags around your code like I've shown here, or remove the code from the post.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-23-2010
    Location
    Killeen, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Copy a range to a different sheet and offset it

    One more quick question. I am trying to copy a range that includes vlookup. When I copy, the range for the Vlookup shift. What would be the best way to prevent that. I tried to set the data range as a variable and then using that variable as the reference for Vlookup but it is not accepting my format. What would that look like? If that wouldnt work, is there a way I can just copy the values and not the formulas?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy a range to a different sheet and offset it

    As per the Forum Rules, you must edit your post above and put code tags around your code like I've shown here, or remove the code from the post.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy a range to a different sheet and offset it

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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