Making textboxes invisible and visible on cell input

redmar007

New Member
Joined
Sep 23, 2013
Messages
25
Hi there,

After some hours spend and not getting any closer to the solution I decided to login again and call in the troops.
I understand how it works but not how I can make it work. So any help will be greatly appreciated.

I have a couple of textboxes and comboxes which I would like to have invisible and appear on cell input for example cell A1 for textbox 1 and A2 for textbox 2 etc. The idea is to have only the first textbox visible and the user must fill in textbox 1 to be able to continue to the next textbox automatically and after the second textbox is filled he/she is able to move on to the combobox etc.

I tried several things but cant make it work some how. Perhaps I am also putting the VBA code in the wrong module.

Kind regards

Redmar
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Where are these textboxes located?
 
Upvote 0
Someone posted something yesterdag and I think I am on the path to salvation:


Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveSheet.Range("a1").Value = 1 Then
ActiveSheet.Shapes("Textbox1").Visible = True
Else
ActiveSheet.Shapes("Textbox1").Visible = False
End If
End Sub
 
Upvote 0
Getting there... but now the refresh rate is too slow.


Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveSheet.Range("a1").Value = "" Then
ActiveSheet.Shapes("Textbox1").Visible = True
Else
ActiveSheet.Shapes("Textbox1").Visible = False
End If
If ActiveSheet.Range("c3").Value = 1 Then
ActiveSheet.Shapes("Textbox2").Visible = True
Else
ActiveSheet.Shapes("Textbox2").Visible = False
End If

End Sub


If I type a 1 in C3 it is suppose to instantly show the other textbox
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top