Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chris,
I'll try to tackle a couple of your questions to get you started..... the date stamp: Would you want to check to see if anything was actually changed before you changed the date stamp? When you bring up the UserForm, I'm assuming that you're populating it with values from a row on a sheet? You might want to match the values on the form to what "was" on that row before changing the date stamp. Replacing the data with an update button: Where did you get the data? If it was from a row, you need to trap and save the row number so that you can write back to the same row. Example: Lets say that rows 5 through 20 have data....... User clicks on row 6. Dim aRow as Long aRow = ActiveCell.Row In the UserForm.Activate Event TextBox1.Value = Range("A" & aRow).Value The above will get whatever is in A6 and place it in TextBox1 Going the other way with the Update button...... Range("A" & aRow) = TextBox1.value Hopefully the above will get you started in the right direction, John "Chris" wrote in message ... Hello all, I have a few issues that I'm trying to get around in my small inventory excel program. And I'm just getting my feet wet in VBA. 1) With my UserForm, I need to have it date stamp when a user updates the inventory. The date stamp will then be placed in a column, with the rest of the info., called Date Changed. 2) Then when a user updates information by clicking an update button, it replaces the data in sheet1 with the new data. 3) Also is it possible to have users log in so I can have a better way of tracing users. Along thoses thoughts, can I have an admin in user/password? 4) Also is there a good site I can view scripts so I can get a better understanding? Google isn't working to well. Thank you for any help provided. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB Code Issues | Excel Discussion (Misc queries) | |||
Lookup issues | Excel Discussion (Misc queries) | |||
Sorting issues | Excel Discussion (Misc queries) | |||
C# VBA DLL issues | Excel Programming | |||
need help for several issues | Excel Programming |