Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Printing during select times

Hey,

I have a code that I did myself :) (small steps), I tried setting it u
where it would only allow the user to print during select times. M
goal was to set it up where the file could only print between 8am
Noon.. I can't figure out the code to be between certain times.

Any help will be appriciated

Private Sub Workbook_BeforePrint (Cancel As Boolean)
Select Case Time
Case Is TimeSerial(12, 0, 0)
msg = "You do not need to print at this time!"
Ans = "MsgBox(msg, vbInformation, "Cannot Print...")
Cancel = True
End Select
Exit Sub
msg = "Is the Shift Report completed and accurate?"
Ans = MsgBox(msg, vbYesNo, "About to print...")
If Ans = vbNo Then Cancel = True
End Sub


Thanks,

Rockee Freema

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Printing during select times

Me again,

Is this possible??

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Printing Macro saltnsnails Excel Discussion (Misc queries) 6 March 13th 08 05:48 PM
Printing Single Worksheet Multiple Times with Different Data Jr. New Users to Excel 6 October 16th 07 05:53 PM
Printing mulitple times to adobe TimT Excel Discussion (Misc queries) 0 July 20th 07 02:52 PM
Printing select pages zchuckz New Users to Excel 9 December 15th 06 06:51 PM
Printing Only Select Columns Bill Martin Excel Programming 1 July 31st 03 04:56 PM


All times are GMT +1. The time now is 05:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"