Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
If Then Statement
View previous topic :: View next topic  
Author Message
toddswint
Newbie


Joined: 13 Apr 2006
Posts: 4

PostPosted: Apr 16th, 2006 09:14 PM    Post subject: If Then Statement Reply with quote

Hello,

I have a workbook with three sheets (sheet 1, sheet 2 and sheet 3).

On sheet 1 I have a group box containing two radio buttons (button 1 and button 2. The cell link for the radio buttons is also on sheet 1.

On sheet 1 I have a command button called print.

What is the correct if then statement to use in a macro so that, if button 1 is selected and I click print, sheet 2 will print and if button 2 is selected and I click print, cheet 3 will print?

Thanks in advance,
Todd
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic