Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Folks,
I'm trying to save my users from themselves by forcing them down a path with choices. Specifically I've created a form that asks for a selection. The selections will take them to the appropriate sheet to the next step. All my sheets are hidden until necessary and so far it's nice and clean. Everything works great except if there is no selection made from the initial choices. If no choice is made and the user click the OK button, the form closes and they are stuck. See code below... Public Sub CompanySelect() Dim frm As New frmCompanySelect 'Dim s As String frm.Show If frm.btnCORP.Value = True Then Sheets("Query CORP").Visible = True Sheets("Query CORP").Select Range("D6").Select ElseIf frm.btnNJ.Value = True Then Sheets("Query NJ").Visible = True Sheets("Query NJ").Select Range("D6").Select ElseIf frm.btnVA.Value = True Then Sheets("Query VA").Visible = True Sheets("Query VA").Select Range("D6").Select End If Also, I'd like to put a "Back To Choices" button on each sheet that will invoke the form again and a simple... "Call companySelect- is not doing it. Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use optionbutton value to select code to run. | Excel Programming | |||
Range.Select error and screen maximizing error in Workbook_Open() | Excel Programming | |||
Range.Select error and screen maximizing error in Workbook_Open() | Excel Programming | |||
easy one - select a cell | Excel Programming | |||
SendKeys command to select an OptionButton | Excel Programming |