Listbox visible false

jeffmoseler

Well-known Member
Joined
Jul 16, 2004
Messages
540
I am trying to use code to hide a listbox. This is what I have so far, but it's not working. I know the answer is simple but I can't remember. Thanks for the help.

ActiveSheet.Shapes("ListBox1").Visible = True
ActiveSheet.RefreshAll
 
Good call. I just tried that and it still does the same thing.

The listbox is from the control tool box as opposed to the forms toolbox. When I try to set the visible property value to false it gives me these issues.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I don't think it's an Excel issue, but maybe a hardware (video card / video chip) issue. On both my home and work computers I don't have an issue w/ the combo box disappearing and reappearing by just running the code, not having to "refresh" the screen by selecting another worksheet.
 
Upvote 0
I think I found the issue. I wasn't using a command button. I was using a picture and assigning it a macro. If I use a command button it works fine.

Does anyone know why?
 
Upvote 0

Forum statistics

Threads
1,222,622
Messages
6,167,127
Members
452,098
Latest member
xel003

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