C
Craig
Hello agian!
I'm trying to set a textbox for use later in the code.
Dim iBox as Textbox
if varTest = 1 then
Set iBox = Sheet1.textbox1
elseif varTest = 2 then
Set iBox = Sheet1.textbox2
elseif varTest = 3 then
Set iBox = Sheet1.textbox3
end if
with iBox
.text = "Test"
.enabled=False
etc...
end with
It errors during the Set iBox= line of codes, what am I doing wrong?
Thanks
Craig
I'm trying to set a textbox for use later in the code.
Dim iBox as Textbox
if varTest = 1 then
Set iBox = Sheet1.textbox1
elseif varTest = 2 then
Set iBox = Sheet1.textbox2
elseif varTest = 3 then
Set iBox = Sheet1.textbox3
end if
with iBox
.text = "Test"
.enabled=False
etc...
end with
It errors during the Set iBox= line of codes, what am I doing wrong?
Thanks
Craig