Hi all,
Is it possible for a userform to retrieve information from a worksheet, the user to adjust it and then the userform to overwrite the original information?
Any help really appreciated..
Endorphin
Hi all,
Is it possible for a userform to retrieve information from a worksheet, the user to adjust it and then the userform to overwrite the original information?
Any help really appreciated..
Endorphin
Hello Endorphin,
Here is a simple example. This uses a text box to accept the user's entry, and two command buttons: one to read the data into the text box and the other to write the data back to the cell. You would probably need to added some validation and formatting to this code based on your needs.
Sincerely,![]()
Please Login or Register to view this content.
Leith Ross
Thank you, atleast I know it can be done. I am only just learning VBA and if I get stuck, could I ask for help on this?
Neil
Hello Neil,
Of course, anytime.
Sincerely,
Leith Ross
Hi Leith / Anyone
Ok, I am now stuck, I have created the document but unable to retrieve the data into the Userform.
The signal IDs will always be the same.
1. How do I get the information into the form once I have selected the Signal ID.
2. If one of the lamp has been changed, I would like to press the “Archive lamp button” and have the newest date move to the old date leaving a space to put the new new date in.
3. Is there anyway to force excel into opening on the Aspect Data Entry page whatever page it has been saved on.
Solved this one, see below
Again, any help is appreciated.![]()
Please Login or Register to view this content.
Neil
Last edited by Endorphin; 07-17-2008 at 03:15 PM. Reason: Fixed one Problem
use the change event of the combobox
See attached, I've also simplified the combobox loading![]()
Please Login or Register to view this content.
You also mention using Auto_Open, this code should now be in the WorkBook_Open event.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Hi Roy,
Sorry for my silence but have not been able to get on the PC at work since I posted the request.
Your code works great the only problem i have now is a new line of information is created rather than the existing one updated.
Again, any help appreciated
Neil
Last edited by Endorphin; 07-28-2008 at 05:50 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks