+ Reply to Thread
Results 1 to 7 of 7

MACRO to copy-paste TWO LINES

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    london, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Exclamation MACRO to copy-paste TWO LINES

    Hi!

    I need to a macro to regularly copy-paste two lines from "worksheet A" to "worksheet B".

    However, I would like them added to "worksheet B" following the lines that are already in that worksheet, and not overwriting them.

    My macro (named Register) is as follows:

    Please Login or Register  to view this content.
    Can you help me out?

    Thank you very much!
    Last edited by Pana1; 07-12-2010 at 01:10 PM.

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

    Re: Urgent! MACRO to copy-paste TWO LINES

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    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

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

    Re: MACRO to copy-paste TWO LINES

    See the code in the Contacts form example here

    http://excel-it.com/vba_examples.htm

    Note you don't need to select any cells

  4. #4
    Registered User
    Join Date
    07-12-2010
    Location
    london, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: MACRO to copy-paste TWO LINES

    Are you making fun of me?

    Can you help me with the question I posted?

  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: MACRO to copy-paste TWO LINES

    The example shows how to copy cells from one sheet to another. What else is your code to do?

    Have you looked at the example & code?
    Last edited by royUK; 07-13-2010 at 01:49 AM.

  6. #6
    Registered User
    Join Date
    07-12-2010
    Location
    london, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: MACRO to copy-paste TWO LINES

    Wait! Actually I made it.

    Thank you very much for your help, sorry for the initial misunderstaning!

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

    Re: MACRO to copy-paste TWO LINES

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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