Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default macro to filter/print pages using certain criteria

Hi,
This is just a followup to my other post. Excel doesn't
have functionality built-in to filter by pages. How
difficult would it be to write a macro for this and what
would be its general structure? Also, does anyone know if
an equivalent macro has already been written and possibly
available on the web?

Thanks,
Mark

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default macro to filter/print pages using certain criteria

Hi
By pages do you mean sheets? If sheets, do you want to filter based on
their sheet name??
In that case, something like

For each wks in ActiveWorkBook.Worksheets
If not CriteriaIsMet(wks.Name) then
Activeworkbook.Worksheets(wks.Name).Hidden = True
End If
Next wks

Where CriteriaIsMet is some Criteria you have based on the worksheet
name. This might involve the InStr function or Find Method - depends
how flexible you need your criteria to be.

regards
Paul

"mark" wrote in message ...
Hi,
This is just a followup to my other post. Excel doesn't
have functionality built-in to filter by pages. How
difficult would it be to write a macro for this and what
would be its general structure? Also, does anyone know if
an equivalent macro has already been written and possibly
available on the web?

Thanks,
Mark

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
need a print macro to print only a certain number of pages Tonso Excel Discussion (Misc queries) 2 July 26th 06 06:03 PM
macro to print only pages that are filled in Tonso Excel Discussion (Misc queries) 0 July 6th 06 05:32 PM
Error using a macro to print multiple pages. [email protected] Excel Discussion (Misc queries) 2 June 21st 06 06:47 AM
How to record macro to print pages modified today pamiam3333 Excel Worksheet Functions 1 September 10th 05 02:36 AM
Macro to Select Pages & Show Print Ad Excel Programming 1 July 22nd 03 11:44 AM


All times are GMT +1. The time now is 07:07 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"