Conditional 2nd UserForm

Bruce9925

New Member
Joined
Feb 18, 2010
Messages
4
I have a userform set up to ask for a user to select a county in Georgia and when they do, it goes to the right location on a map of Georgia and changes the font for that county name to bold and red. But about half the map is "off the page" when you're at the top of the sheet, so if the user picks a county in the bottom half of Georgia it scrolls down to show that county. The user is left there with the button to click on to choose another county no longer showing. What I want to do is include an If statement somewhere that shows a second user form (only if the page is scrolled down) to give a choice of "Go to top of Page?". I tried just putting a MsgBox inside an if statement in the code for the original UserForm, but that didn't work. So I thought of doing a 2nd UserForm, which I understand is doable, but still need it to only be shown if the page is scrolled down. Any suggestions?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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