A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

create a button to print certain tabs in excel 2003



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2010, 04:20 PM posted to microsoft.public.excel.worksheet.functions
larry504
external usenet poster
 
Posts: 1
Default create a button to print certain tabs in excel 2003

I would like a way to search every tab in 1 workbook and the same cell on
each tab, than based an the value in the cell print the page or not
  #2  
Old March 11th, 2010, 09:34 PM posted to microsoft.public.excel.worksheet.functions
Otto Moehrbach[_2_]
external usenet poster
 
Posts: 716
Default create a button to print certain tabs in excel 2003

Something like this perhaps. I assumed the cell to check is A1, and to
print B1:G50 if A125. Post back if you need more. HTH Otto
Sub PrintIf()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
With ws
If .Range("A1") 25 Then
.Range("B1:G50").PrintOut
End If
End With
Next ws
End Sub

"larry504" wrote in message
...
I would like a way to search every tab in 1 workbook and the same cell on
each tab, than based an the value in the cell print the page or not


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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