+ Reply to Thread
Results 1 to 7 of 7

Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Antwerp
    MS-Off Ver
    Excel 2003
    Posts
    8

    Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    Hi,
    I am using excell 2011 and have created a macro button (via Developer - Form Controls - Button) to which I want to assign a macro that if I click this button, does the following :
    The values of Cell H33 and H39 of Sheet1 are copied to the first empty (blank) cell of column A (= destination column for value of cell H33) respectively column B (= destination column for value of cell H39) of Sheet2 (both sheets in the same workbook)

    I've searched for a solution on the forum for days now, without success. So if you'd like to help me out, it would be very much appreciated.
    Last edited by JamesFinch; 04-15-2014 at 02:58 PM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Antwerp
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    Hi John,
    Sincere thanks for your 'warp' answer : This works perfectly !

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Antwerp
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    Hi John,
    Sincere thanks for your 'warp' answer : This works perfectly !

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    You're welcome. Glad to help out, and thanks for the feedback. Please comply with Forum Rule No. 9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

  6. #6
    Registered User
    Join Date
    08-17-2012
    Location
    Antwerp
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    John, I ran into un expected problem today. The code above worked fine yesterday but when the values in cells H33 and H39 are formula results (as is the case in my actual workbook) then the formula results are not copied to sheet2. Sorry to disturbe you again, but can you help me once more please ?

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    Try:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-17-2012
    Location
    Antwerp
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Macro to copy cell value of Sheet1 to next empty cell of colum A in Sheet 2

    John, you don't need to look any longer. I found a workaround : in cells H33 and H39, I simply added the sheetname (of sheet1) to the formula (so the formula in cell H33 looks like =Sheet1!$L$33). When the above VBA code now copies this formula to Sheet2, the formula result is pasted (and not the usual #VALUE message). Hope this is helpful to other forum members too.

+ 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. Replies: 3
    Last Post: 04-04-2014, 11:34 AM
  2. [SOLVED] Macro copy entire row if any cell frm col A in sheet1 match any cell frm col A in sheet2
    By daillest319 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2013, 03:20 PM
  3. [SOLVED] copy paste value from sheet1 to sheet2 in empty cell only
    By koi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2013, 03:46 AM
  4. [SOLVED] Need a macro to Copy Cell in Sheet1 to the next empty cell in Column A, Sheet2
    By killerthun in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2012, 01:21 PM
  5. Replies: 4
    Last Post: 12-22-2011, 02:47 PM

Tags for this Thread

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