+ Reply to Thread
Results 1 to 11 of 11

Macro to copy range and paste to other sheet

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro to copy range and paste to other sheet

    Hi all!

    I'm new to the forum and a bit of a novice at VBA though I've had a little experience with it in the past. So my question...

    I'm using a macro. Every time a click it I want it to copy information from cells A1-4 in Sheet 2 and paste it in cells B2-E2 in Sheet 1 (that's the easy bit for me as I just use the record macro function).

    I then want the macro to move to the next row in Sheet 1 (B3-E3) when I click it again. However the information it will be getting is still from A1-4 in Sheet 2 (as I will be changing it when I need to).

    Cheers all!
    Last edited by zbor; 01-13-2013 at 10:12 AM.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Macro help - Typical Novice!

    Try

    Please Login or Register  to view this content.
    @Arlu, I posted the answer before I saw your notice. Sorry
    If you like my contribution click the star icon!

  3. #3
    Registered User
    Join Date
    01-13-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro help - Typical Novice!

    Sorry about that. But thank you. Problem solved.

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Macro help - Typical Novice!

    Please Login or Register  to view this content.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro help - Typical Novice!

    Sean,

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore Moderators' or Administrators' requests - note that this includes requests by senior members as well, if you are unclear about their request or instruction then send a private message to them asking for help. Do not post a reply to a thread where a moderator has requested an action that has not been complied with e.g Title change or Code tags...etc
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro help - Typical Novice!

    Will29,

    Its good that you received the solution. But for the benefit of others who will be looking for a similar solution, its better if you change the title.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Macro help - Typical Novice!

    OllieB, you didn't see unadequately title?
    Sean Thomas, you didn't see pending request?

    Hardly to belive...

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro help - Typical Novice!

    Zbor,

    OllieB and my post were around the same time, so timing issue.

    Sean Thomas has been given an infraction.

  9. #9
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Macro help - Typical Novice!

    Quote Originally Posted by zbor View Post
    OllieB, you didn't see unadequately title?
    Request was clear, I indeed should have picked up on the poor title. Sorry
    Last edited by OllieB; 01-13-2013 at 09:54 AM. Reason: changed wording

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Macro help - Typical Novice!

    Quote Originally Posted by arlu1201 View Post
    Zbor,

    OllieB and my post were around the same time, so timing issue.

    Sean Thomas has been given an infraction.
    I saw. I wasn't pointin OlliB for that. AlsoI've cganged title since Will29 is gone.

  11. #11
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Macro to copy range and paste to other sheet

    Sorry guys,
    when i first viewed the question there was no moderators request, only the original thread.
    I was working on solution and entered my answer on the page i had open. therefore my response was added after moderators request.
    Therefore i feel it was a bit harsh giving me an infraction (didnt even no what that was or that it existed until now).
    I shall watch out for that one in future.

    Sean

+ 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