+ Reply to Thread
Results 1 to 5 of 5

Macro for copying one cell from one worksheet to another

  1. #1
    Registered User
    Join Date
    10-14-2009
    Location
    Toledo, Ohio, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Macro for copying one cell from one worksheet to another

    Hi,

    I have not been able to find this or to get this to work on my own, so if someone can please answer this, it would be appreciated!

    I have a workbook that on sheet one, I want whatever data gets put into B2 to be put into B2 on sheet 2. I have not been able to find info just for one cell, always a row or column. I want this to be a macro/VB in the background.

    I also will need whatever data is entered into worksheet one, cell B26, put copied into worksheet two, cell B6.

    Thank you very much in advanced!

    Brian
    Last edited by bloomis; 01-14-2010 at 05:20 PM.

  2. #2
    Registered User
    Join Date
    01-14-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Macro for copying one cell from one worksheet to another

    I don't know if I understand you correctly.
    Is this what you need?:
    Please Login or Register  to view this content.

    Mário
    Last edited by mjcordeiro; 01-14-2010 at 05:47 PM. Reason: I forgot the code tags

  3. #3
    Registered User
    Join Date
    10-14-2009
    Location
    Toledo, Ohio, USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro for copying one cell from one worksheet to another

    Yes,
    But what do I need to add to the beginning....ex: Private Sub???? I think that is why it is not working for me!!

    Thanks again for all of your help!
    Brian


    Please Login or Register  to view this content.
    Last edited by bloomis; 01-18-2010 at 07:21 AM. Reason: Added code tags

  4. #4
    Registered User
    Join Date
    01-14-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Macro for copying one cell from one worksheet to another

    Hello Brian,

    You must be more curate in your post.
    You are using a Userform or you just want to execute a simple macro?
    If you use a Userform, place a simple commandbutton, double click on it, this will place you to the
    Please Login or Register  to view this content.
    event. Place the code inside this procedure.

    If you want to use a simple macro, try to use the RecordMacro command.

    Sincerly
    Mário
    Last edited by mjcordeiro; 01-14-2010 at 05:47 PM. Reason: I forgot the code tags

  5. #5
    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: Macro for copying one cell from one worksheet to another

    mjcordeiro, bloomis,

    Please take a few minutes to read the Forum Rules, and then edit your post to wrap your code with Code Tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

+ 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