Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print/Not print depending on dropdown list value

Hi, I'd like to print (or not print) a particular printing page in a
Worksheet when printing depending on the selection of a dropdown list, where
the list contains "YES" or "NO" created using data validation. Is this
possible? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Print/Not print depending on dropdown list value

Hi Sam:

You need to use a workbook event before print as in:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
if activesheet.name="sheet1" then

' may need to change this
if activesheet.range("A1") = "NO" then
Cancel=true
end if
End Sub

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Sam Kuo" wrote:

Hi, I'd like to print (or not print) a particular printing page in a
Worksheet when printing depending on the selection of a dropdown list, where
the list contains "YES" or "NO" created using data validation. Is this
possible? Thanks

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
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM
Print depending on tab colour Saintsman Excel Discussion (Misc queries) 3 July 16th 07 01:28 PM
objects (buttons, dropdown list) move after print Ava[_2_] Excel Programming 4 April 29th 05 04:16 PM
Populating dropdown list 2 with data depending upon what was selected in list 1 karambos Excel Programming 2 November 9th 04 05:32 PM
Changing cell value depending on dropdown list RogerDaShrubber Excel Programming 2 February 3rd 04 12:17 AM


All times are GMT +1. The time now is 04:20 AM.

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"