Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Below is my UserForm_Initialize code. What I'm wondering is, is it possible
to declare a Public Variable if rng(1, 7).value is "Yes"? I would call the Variable Cleared and then during my exit routine (clicking the Finished Button) I would need a statement that said if Cleared is true then exit sub. Private Sub UserForm_Initialize() Dim rng Set rng = Cells(ActiveCell.Row, 1) TextBox1.Value = rng(1, 1) 'Date TextBox1.Text = Format(TextBox1.Text, "mm/dd/yyyy") TextBox2.Value = rng(1, 2) 'Check Number TextBox3.Value = rng(1, 3) 'Check Amount TextBox3.Value = Format(TextBox3.Value, "currency") TextBox4.Value = rng(1, 4) 'Paid To TextBox5.Value = rng(1, 5) 'Explination If rng(1, 7).Value = "Yes" Then OptionButton1.Value = True End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Public variable (or Public Const?) | Excel Programming | |||
Public variable (or Public Const?) | Excel Programming | |||
Public variable | Excel Programming | |||
Public Variable | Excel Programming | |||
public variable | Excel Programming |