Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the code below to put the values of the respective rng's in the
TextBoxes when the UserForm opens. What I am wondering is if there is anyway to store those values so if the user clicks on the Cancel button the values will be returned to there cells replacing any edits that might have taken place. Private Sub UserForm_Initialize() Dim rng Set rng = Cells(ActiveCell.Row, 1) TextBox1.Text = rng(1, 4).Value 'ALI Time TextBox2.Text = rng(1, 5).Value 'Vacation In Lue Of Holiday TextBox3.Text = rng(1, 6).Value 'Floating Holiday TextBox4.Text = rng(1, 7).Value 'Carry Over Hours TextBox5.Text = rng(1, 8).Value 'Other Adjustments TextBox6.Text = rng(1, 12).Value 'Comments End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Store variables in code just as you can w. constants? Available to read/edit? | Excel Programming | |||
Store values in variables based on count | Excel Programming | |||
How to store variables of a single cell in a column? | Excel Programming | |||
store inventory sheet(ex:sports equipment store) | Excel Worksheet Functions | |||
Store variables between XLA sessions | Excel Programming |