+ Reply to Thread
Results 1 to 5 of 5

Copy certain cells before save from a worksheet in one workbook to a worksheet in another

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Standerton South Africa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Copy certain cells before save from a worksheet in one workbook to a worksheet in another

    I want to copy cells “A” to “K” from the last row of the worksheet “Payments received” to the next available row of the “Reports”-workbook’s worksheet “Record of payments”, only when I save “Payments received”. The columns of “Record of payments” are identical to the columns of the worksheet “Payments received”. I managed to copy the entire last row or only range “A” as soon as data is entered. All my attempts to copy A to K before save end in a yellow highlighted code!

    I will really appreciate your help.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy certain cells before save from a worksheet in one workbook to a worksheet in anot

    Hi, Marianne Rachmann,

    maybe you could have shown us your code.

    Please adjust the drive and folder as well as maybe the fileformat for the workbook (here: xls). The code goes into ThisWorkbook of the workbook holding "Payment received":
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Last edited by HaHoBe; 09-16-2012 at 11:33 AM. Reason: typo for workbook name
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    Standerton South Africa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Copy certain cells before save from a worksheet in one workbook to a worksheet in anot

    Thank you so much for your solution, Ciao.

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Standerton South Africa
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Copy certain cells before save from a worksheet in one workbook to a worksheet in anot

    Sorry, I meant to thank you, HaHoBe!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Copy certain cells before save from a worksheet in one workbook to a worksheet in anot

    @ Marianne Rachmann

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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