Is it possible to have a userform open in a workbook and when the data from the form is saved, save it to a completely different workbook. If so, will that other workbook need to be open for the userform data to be saved?
Thank you
Is it possible to have a userform open in a workbook and when the data from the form is saved, save it to a completely different workbook. If so, will that other workbook need to be open for the userform data to be saved?
Thank you
Last edited by jcarstens; 11-02-2009 at 11:21 PM.
The code will need to open the workbook then save to it. Not difficult, you need to specify the workbook & sheet to write to.
Hide the procedure by switching off screen updating
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Would you mind helping me out with this. I attached a sample. The user form is in Workbook test1 and I would like the data saved in both workbook test1 and duplicately in workbook test2. I undestand the pathe will change on your machine, but if you could help me out with the layout, that would be extremely helpful.
Thank You
Hi jcarstens
I've modified your code to copy the userform data to Test2.xlsx. The procedure assumes both workbooks are in the same folder.
Let me know of issues. John
PS: I should have pointed out that the procedure assumes Test2.xlsx is closed when you click Button1. If you need to include a test to see if Test2 is open, that can be added.
Last edited by jaslake; 11-02-2009 at 10:08 PM. Reason: PS
John
If you have issues with Code I've provided, I appreciate your feedback.
In the event Code provided resolves your issue, please mark your Thread as SOLVED.
If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.
That is perfect, thank you.
That is Really Helpful "jaslake"
Have a Great Day
John Cruz
Its been a long time since your code was posted jaslake, rest assured that it is still as useful as the day you posted!
thank you so much!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks