+ Reply to Thread
Results 1 to 7 of 7

VB Code to copy certain range from 1 sheet to another

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to copy certain range from 1 sheet to another

    Hello:

    I have monthly sheet called Jan14,Feb14,Mar14......Dec14.

    I need a VB code to copy
    Cell Range H39: AB39 of Jan14 at H4 of Feb14
    Cell Range H39: AB39 of Feb14 at H4 of Mar14
    Cell Range H39: AB39 of Mar14 at H4 of Apr14 and so on until Dec14.

    Please let me know if any questions.

    Thanks

    Riz

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: VB Code to copy certain range from 1 sheet to another

    Hi Riz,

    Though I'm not a fan of separate tabs for different months, try this where the the range is copied from Jan14 across the other months (which is what you're after I believe):

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain range from 1 sheet to another

    Hello Trevor:

    I was under the impression that i had responded.
    I am very sorry for my mistake and please, please pardon me.
    I have tried your solution as file is attached but does not seem to work.
    Please have a look and let me know and once again I am begging to forgive me for my not responding and I am sure it was my mistake and age of forgetting.
    Thanks and looking forward to your response to forgive me.
    Usually i have a habit of appreciating the completed solution and always leave nice feedback and close the thread.
    Riz
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: VB Code to copy certain range from 1 sheet to another

    I have tried your solution as file is attached but does not seem to work.
    It does for me

    What isn't working - when I look at the range H39 to L39 (even though your original post you said you wanted to copy H39 to AB39) from Jan14 has copied to Feb14 and Mar14?

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain range from 1 sheet to another

    Hi Trevor:

    I have change the code to try for3 months first to see if it will work for me.
    That's is what i have attached.
    As you can see in the attached sheet, i wanted the copy data H39:*39 from Jan14 at Cell H4 of Feb14, Copy data H39:*39 at Cell H4 of Mar14 and so on.
    Please have a look at my earlier attached sheet and let me know if any questions.
    And once again i am very sorry if i have not explained it clearly.
    Thanks
    Riz

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy certain range from 1 sheet to another

    Hi Trevor:

    I beleive i found the problem.
    In your code you had data to be pasted at H39 instead of H4 as my original request.
    Now it works great.
    Thank you so much for your great expert help.
    Riz

  7. #7
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: VB Code to copy certain range from 1 sheet to another

    Thanks for the feedback and I'm glad we got it solved.

+ 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. Modify code to copy only set range instead of entire sheet to new WorkBook
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2014, 09:49 PM
  2. Replies: 0
    Last Post: 03-20-2014, 11:51 AM
  3. VBA code. Copy Excel Sheet/Range with all formats but no grid lines to a new Word document
    By Richard Buttrey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2014, 08:06 PM
  4. VBA Code to copy cell range and paste to certain sheet
    By goguneon in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-03-2013, 08:35 AM
  5. [SOLVED] code to copy a range of cells to another sheet
    By Robb27 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-04-2006, 06:30 AM

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