+ Reply to Thread
Results 1 to 14 of 14

Transfer data from multiple cells on one sheet to next available row on second sheet.

  1. #1
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Transfer data from multiple cells on one sheet to next available row on second sheet.

    I am creating a sales log of sorts for my department at work and need a little help. My boss wants me to create a workbook where my coworkers can enter data that should be passed along to the appropriate sales rep (easy enough) but then have that data saved in a log on another sheet in said workbook on the next available row in the correct spot, preferably without having to type it a second time. I know this is possible and I have found a few different VBA formulas in Google but none of them seem like the one I need. If possible I also need a formula that will send an email of the previous days logs automatically, but only of the rows for the previous day. I am still a VBA beginner and could really use some help setting this up if at all possible. Here is my workbook I need the information in the left box "Gather Information" to be transferred to the "Log" sheet.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,479

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Reviewing your project, here is a simplistic approach to accomplish entering data to your database :

    Please Login or Register  to view this content.
    Attached example. You can add to this existing example to accommodate all the fields in your project.
    Attached Files Attached Files

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,479

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    The following will put into an email whatever you first highlight on the sheet :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Quote Originally Posted by Logit View Post
    Reviewing your project, here is a simplistic approach to accomplish entering data to your database :

    Please Login or Register  to view this content.
    Attached example. You can add to this existing example to accommodate all the fields in your project.
    This is great! is there a way to do this same thing but without the pop up window? so they would enter the information into the designated cells on sheet 1, hit the button, and then it be transferred onto sheet 3 automatically while also being deleted from the cells on sheet 1? if not that is okay this will work out just fine.

  5. #5
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Quote Originally Posted by Logit View Post
    The following will put into an email whatever you first highlight on the sheet :

    Please Login or Register  to view this content.
    Thank you so much, but is there a way to set this email up to automatically select the cells with the specific date? for example today (06-05-2025) at 07:00 the email button is clicked( or even once the application is opened) and it automatically selects the entries for 06/04/2025 and sends the email.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    This transfers data from Sheet1 to Sheet3 and clears cells at the same time.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bakerman2; 06-05-2025 at 07:19 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  7. #7
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Quote Originally Posted by bakerman2 View Post
    This transfers data from Sheet1 to Sheet3 and clears cells at the same time.
    Please Login or Register  to view this content.
    Thank You so much!!! This is perfect!!! now just to figure out the email.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Try this. On opening the workbook the code to send an email starts automatically.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Quote Originally Posted by bakerman2 View Post
    Try this. On opening the workbook the code to send an email starts automatically.
    Please Login or Register  to view this content.
    I just realized I didn't specify what I needed for the email. This is almost exactly what I need, but it deletes the data of the previous days but i need to keep the entire log until the end of the month but send only the previous day in the email. (ex: today is 6/6/2025 email sends 6/5/2025 but leaves 6/1-6/4). sorry for the confusion, my boss tends to make things a little complicated.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    The code doesn't delete anything. It uses AdvancedFilter to copy the needed date rows to another sheet and present that in the email.

  11. #11
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Quote Originally Posted by bakerman2 View Post
    The code doesn't delete anything. It uses AdvancedFilter to copy the needed date rows to another sheet and present that in the email.
    okay i deleted the copy I had downloaded from your post earlier and redownloaded it not sure why it was being weird before but now it works perfectly. Thank you so much for your help!!!

  12. #12
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    it worked in the copy you posted but when i added it to my original document it is giving me an error message of "Run-time error '1004': the extract range has a missing or invalid field name." and then it highlights
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    what did I mess up?

  13. #13
    Registered User
    Join Date
    03-08-2025
    Location
    Vancouver, Washington
    MS-Off Ver
    Microsoft 365 apps for business
    Posts
    43

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Quote Originally Posted by Coltara View Post
    it worked in the copy you posted but when i added it to my original document it is giving me an error message of "Run-time error '1004': the extract range has a missing or invalid field name." and then it highlights
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    what did I mess up?
    Nevermind I figured it out. Thank you so much for you help!!!!

  14. #14
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,569

    Re: Transfer data from multiple cells on one sheet to next available row on second sheet.

    Glad to help and thanks for rep+.

+ 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. need help with data transfer from one sheet to another in specific cells
    By cuteamit2 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-04-2022, 04:37 AM
  2. How to transfer data from multiple sheets into 1 sheet
    By plumberef in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2019, 12:42 PM
  3. Transfer data from the main sheet to another sheet depending on empty cells
    By Joky in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 01-19-2018, 04:01 PM
  4. [SOLVED] Transfer data from multiple tables to another sheet
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-25-2015, 10:48 PM
  5. [SOLVED] Data transfer from one sheet to another multiple cells
    By demetrius323 in forum Excel Programming / VBA / Macros
    Replies: 92
    Last Post: 02-09-2015, 07:37 PM
  6. Transfer data from cells with sums to another sheet
    By jimmydale912 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-01-2014, 01:47 PM
  7. Replies: 1
    Last Post: 03-11-2013, 05:37 AM

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