Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am wondering how to change this code a little so if the person hits cancel
button on the inputbox it just exits back to the main menu called "main" Dim ROUND1 ROUND1 = InputBox("WHAT ROUND IS IT?", , Val(Sheet1.Range("B3") + 1)) WEEK1.Visible = False WEEK2.Visible = False PRINT1.Visible = False PRINT2.Visible = False VIEW1.Visible = False VIEW2.Visible = False Thanks Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks I have worked it out
Greg "Greg B" wrote in message ... I am wondering how to change this code a little so if the person hits cancel button on the inputbox it just exits back to the main menu called "main" Dim ROUND1 ROUND1 = InputBox("WHAT ROUND IS IT?", , Val(Sheet1.Range("B3") + 1)) WEEK1.Visible = False WEEK2.Visible = False PRINT1.Visible = False PRINT2.Visible = False VIEW1.Visible = False VIEW2.Visible = False Thanks Greg |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Greg,
A simple solution is Dim ROUND1 ROUND1 = InputBox("WHAT ROUND IS IT?", , Val(Sheet1.Range("B3") + 1)) If ROUND1 = "" Then main End If WEEK1.Visible = False WEEK2.Visible = False PRINT1.Visible = False PRINT2.Visible = False VIEW1.Visible = False VIEW2.Visible = False Best regards, Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Shorten code to apply to all sheets except a few, instead of individually naming them, and later adding to code. | Excel Programming | |||
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... | Excel Programming | |||
How to assign same code inside Option button code space ?? | Excel Programming | |||
Excel code convert to Access code - Concat & eliminate duplicates | Excel Programming |