+ Reply to Thread
Results 1 to 4 of 4

button -replacing data in cells from sheet 1 with data from sheet 2

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    10

    button -replacing data in cells from sheet 1 with data from sheet 2

    hey there,
    looking for some help here, probibly an easy one for you guys.

    basically what im trying to accomplish is:

    on sheet 1 I have 6 cells of data - b10, b11, c1, c5, d2, e2

    on sheet 2 I have 6 cells of data aswell - b1, b2, c1, c2, d1, e1


    I have a button on sheet 1 that i am trying to program to replace the 6 cells of data in sheet 1 with the data in sheet 2 respectively when the button is pressed. (sht.1 b10 replaced with data from sht. 2 b1 etc.)

    does anyone know how to program this or a reference i can use to accomplish this.

    Great thanks in advance.

  2. #2
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: button -replacing data in cells from sheet 1 with data from sheet 2

    Try putting this behind your button. Nothing fancy here

    Please Login or Register  to view this content.
    Or, you could create a link by copying sheet2!B10, say, then in sheet1!B1 paste special>paste link

    Greg
    Just a guy trying to make work stuff easier.

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: button -replacing data in cells from sheet 1 with data from sheet 2

    ahh, looks great!

    Thank you very much

  4. #4
    Registered User
    Join Date
    09-25-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: button -replacing data in cells from sheet 1 with data from sheet 2

    Private Sub CommandButton1_Click()

    Sheets("sheet1").Range("H10").Value = Sheets("Sheet2").Range("F8").Value

    End Sub

    etc..

    with your help this code is what worked perfectly, excel 13


    thank you

+ 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. Macro button to copy data from one sheet to another sheet's next available column
    By Alice21 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-23-2013, 08:02 AM
  2. Update Details in Sheet 1 to Sheet 2 without replacing old Data
    By Sri.n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 07:43 AM
  3. Transfering data from one sheet to a master sheet using Submit (command button)
    By readitdaily in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2013, 09:15 AM
  4. #REF! issue when replacing data on sheet 1 out of 2
    By Arba in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2012, 02:00 PM

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