PC Review


Reply
Thread Tools Rate Thread

Add Yes/No stops in VB script

 
 
Neall
Guest
Posts: n/a
 
      11th May 2009
I have a print to PDF button I created to print off the tally sheet, but
before they tally sheet gets PDF'd I want to ask 3 or 4 questions to the user

basically the user will click "print to PDF" then I want

Question 1 asked if 'No' move to question 2 if 'yes' exit out of PDF and
highlight cell that needs to be changed

Question2 asked if 'No' move to question 3 if 'yes' exit out of PDF and
highlight cell that needs to be changed

Question3 asked if 'No' continue with the PDF if 'yes' exit out of PDF and
highlight cell that needs to be changed

Any help would be greatly appreciated.

Thanks in advance
--
Neall
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      11th May 2009
If MsgBox("Click Yes to Exit Yes" & vbCrLf & vbCrLf & _
"Click No to continue to Question 2", vbYesNo) <> vbNo Then Exit Sub
If MsgBox("Click Yes to Exit Yes" & vbCrLf & vbCrLf & _
"Click No to continue with Question 3", vbYesNo) <> vbNo Then Exit Sub
If MsgBox("Click Yes to Exit Yes" & vbCrLf & vbCrLf & _
"Click No to continue with PDF", vbYesNo) <> vbNo Then Exit Sub

If this post helps click Yes
---------------
Jacob Skaria


"Neall" wrote:

> I have a print to PDF button I created to print off the tally sheet, but
> before they tally sheet gets PDF'd I want to ask 3 or 4 questions to the user
>
> basically the user will click "print to PDF" then I want
>
> Question 1 asked if 'No' move to question 2 if 'yes' exit out of PDF and
> highlight cell that needs to be changed
>
> Question2 asked if 'No' move to question 3 if 'yes' exit out of PDF and
> highlight cell that needs to be changed
>
> Question3 asked if 'No' continue with the PDF if 'yes' exit out of PDF and
> highlight cell that needs to be changed
>
> Any help would be greatly appreciated.
>
> Thanks in advance
> --
> Neall

 
Reply With Quote
 
Neall
Guest
Posts: n/a
 
      12th May 2009
Thanks Jacob much appreciated!
--
Neall


"Jacob Skaria" wrote:

> If MsgBox("Click Yes to Exit Yes" & vbCrLf & vbCrLf & _
> "Click No to continue to Question 2", vbYesNo) <> vbNo Then Exit Sub
> If MsgBox("Click Yes to Exit Yes" & vbCrLf & vbCrLf & _
> "Click No to continue with Question 3", vbYesNo) <> vbNo Then Exit Sub
> If MsgBox("Click Yes to Exit Yes" & vbCrLf & vbCrLf & _
> "Click No to continue with PDF", vbYesNo) <> vbNo Then Exit Sub
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Neall" wrote:
>
> > I have a print to PDF button I created to print off the tally sheet, but
> > before they tally sheet gets PDF'd I want to ask 3 or 4 questions to the user
> >
> > basically the user will click "print to PDF" then I want
> >
> > Question 1 asked if 'No' move to question 2 if 'yes' exit out of PDF and
> > highlight cell that needs to be changed
> >
> > Question2 asked if 'No' move to question 3 if 'yes' exit out of PDF and
> > highlight cell that needs to be changed
> >
> > Question3 asked if 'No' continue with the PDF if 'yes' exit out of PDF and
> > highlight cell that needs to be changed
> >
> > Any help would be greatly appreciated.
> >
> > Thanks in advance
> > --
> > Neall

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon script stops processing =?Utf-8?B?U2hhd24gQW50aG9ueQ==?= Windows XP General 3 28th Jun 2006 04:33 PM
Script error in Outlook Express stops printing ANDY Windows XP Help 5 29th Jan 2006 10:41 PM
Script stops working in .NET 2.0 =?Utf-8?B?WW91ckJlbGllZnM=?= Microsoft ASP .NET 0 14th Nov 2005 03:27 PM
SP2 - Logon batch script stops with security warning Dan Packard Windows XP Security 1 2nd Jul 2004 07:24 PM
Norton AV script blocking service - stops when started (?) Some Guy Windows XP General 5 13th Apr 2004 09:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 AM.