+ Reply to Thread
Results 1 to 14 of 14

I have a userform which I would like to transfer the data the several worksheets.

Hybrid View

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    I have a userform which I would like to transfer the data the several worksheets.

    Hi

    I have a userform which I would like to transfer the data the several worksheets.

    However, I could not get the correct vba code, To enter data from a UserForm into two separate worksheets without opening Excel spreadsheets.

    Please help me with the following:

    1) I want to enter the data from the UserForm into two separate Excel files consisting of 4 columns in each of the two files, through the Input in UserForm textbox.

    2) Neither Excel file should be opened.

    There is a problem with all the codecs I've worked on, which is that after executing the command, one of the two files opens, which I don't want to happen.


    Thank you.


    With Regards
    Waleed
    Last edited by AliGW; 12-13-2020 at 07:09 AM. Reason: Redacted for legibility.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: I have a userform which I would like to transfer the data the several worksheets.

    You need to supply additional information.

    Your previous thread look similar to this thread.

    You have to open the other workbooks in order to add data to it.

  3. #3
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Smile Re: I have a userform which I would like to transfer the data the several worksheets.

    Unfortunately this is not helpful
    Hope my post was clear to you
    Thanks
    Last edited by walid ali; 12-13-2020 at 07:17 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: I have a userform which I would like to transfer the data the several worksheets.

    @Walid Ali

    The post was perfectly clear and NOT unhelpful, unlike your reply, which is. If you are not prepared to give extra detail, don't expect any help. YOU are the one asking for help!!!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: I have a userform which I would like to transfer the data the several worksheets.

    Hi
    And thanks for your interest

    I've tried all of these suggestions but to no avail
    What I want to do is enter data from UserForm directly into Excel files using VBA


  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: I have a userform which I would like to transfer the data the several worksheets.

    There are instructions at the top of the page explaining how to attach your sample workbook.

  7. #7
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: I have a userform which I would like to transfer the data the several worksheets.

    Sorry, I didn't read your reply completely

    Yes, I understand now

    Thank you so much ...

    Well ... what additional details are needed
    Do you want to attach two Excel files that I want to work on?.

    What I would like to clarify here is that my work file is in a different spin "Arabic language"

    I wanted to know how to do what was needed

    Anyway, if you want me to attach my work file
    This is a beautiful thing ... I would be grateful for your help
    Last edited by walid ali; 12-13-2020 at 07:54 AM.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: I have a userform which I would like to transfer the data the several worksheets.

    Supply the required workbooks and the workbook with the UserForm.

  9. #9
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: I have a userform which I would like to transfer the data the several worksheets.

    good morning

    I apologize for my late reply


    I would like to copy 4 columns from one workbook to another
    Columns are "A - I - M - N"
    And upon modification or addition
    A change occurs in another file.

    Hope that was clear and hope for help.

    Neither Excel file should be opened.



    1 - The first "Final workbook" UserForm



    Just send pictures for clarification
    It is important to look at the pictures


    Attachment 708555

    Attachment 708556

    Attachment 708557

    Attachment 708558


    2 - The second workbook "Student Fee" to copy data to




    thank you for your help
    Attached Files Attached Files
    Last edited by walid ali; 12-14-2020 at 03:20 AM.

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: I have a userform which I would like to transfer the data the several worksheets.

    Neither Excel file should be opened.
    This is not possible,
    Good luck.

  11. #11
    Registered User
    Join Date
    03-18-2010
    Location
    Layton, UT
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: I have a userform which I would like to transfer the data the several worksheets.

    As the last responder said to you, you cannot do what you want without the workbooks being open.

    What might work is to password protect both workbooks, then in the code, unprotect & open, the source workbook, copy the data, close & password protect source workbook, then open destination workbook with password, paste the data & close, then reapply password protection to the destination workbook. it all happens in the blink of an eye!

    Both workbooks may need to be in the same folder. This should go extremely fast and the users will never know either workbook was opened. Just my suggestion.

    But whatever you do, you will need to upload the actual files you are working on, to get the proper help you need. I believe the forum is designed to assist you (with your actual files), not create a file for you from scratch, based just on a picture or your request. I believe you must pay for that type of assistance, which I think is available here.

    By uploading your actual file, you are showing others that you are trying, thus they will be more willing to help, just out the goodness of their heart, free of charge. Good Luck.
    Last edited by catnam; 02-11-2021 at 06:32 PM.

  12. #12
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: I have a userform which I would like to transfer the data the several worksheets.

    Thanks for your interest. I will work with all of your recommendations

  13. #13
    Registered User
    Join Date
    03-18-2010
    Location
    Layton, UT
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: I have a userform which I would like to transfer the data the several worksheets.

    This link maybe helpful:

    https://www.youtube.com/watch?v=wGdw...eshKumarTakyar

    and check out the following Thread on this forum:

    Unprotect, Execute Code, Reapply Protection for Multiple Sheets
    Last edited by catnam; 03-03-2021 at 11:10 PM.

  14. #14
    Registered User
    Join Date
    11-20-2020
    Location
    libya
    MS-Off Ver
    Office 365
    Posts
    21

    Re: I have a userform which I would like to transfer the data the several worksheets.

    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. [SOLVED] Transfer data from Userform to multiple worksheets
    By nancyching1711 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2018, 08:48 AM
  2. Transfer userform data
    By neilsy1 in forum Excel General
    Replies: 1
    Last Post: 08-27-2016, 04:26 AM
  3. [SOLVED] Using a Userform to transfer data to individual worksheets in specific columns and rows.
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2016, 07:00 PM
  4. Transfer data from cells to userform
    By Leviosa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2015, 02:54 AM
  5. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-04-2014, 07:11 AM
  6. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2014, 12:28 PM
  7. [SOLVED] Userform to transfer data to another userform
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2012, 04:46 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