Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Printing Selected worksheets but exclude the sheet "Sheets"

Hi,

i have a macro below on the sheet "Sheet" to print the selected worksheets
but i don't want it to print the sheet "Sheets". How do I go about it? Thanks.

Dim i As Integer
isheet2 = Worksheets("Final Pivot").Index - 1

For i = Sheets("MLog_Int_SG").Index To (Sheets.Count - 14)


Sheets(i).Select False
Next i
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=False
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default Printing Selected worksheets but exclude the sheet "Sheets"

Sub ShetCollect()
For ws = Sheets("MLog_Int_SG").Index To Sheets.Count - 14
If Sheets(ws).Name < "Sheets" Then
sh = sh & Sheets(ws).Name & Chr(44)
End If
Next
sh = Left(sh, Len(sh) - 1)
Sheets(Split(sh, ",")).Select
'Selection.PrintPreview
'ActiveWindow.SelectedSheets.PrintPreview
End Sub


"Dolphinv4" skrev:

Hi,

i have a macro below on the sheet "Sheet" to print the selected worksheets
but i don't want it to print the sheet "Sheets". How do I go about it? Thanks.

Dim i As Integer
isheet2 = Worksheets("Final Pivot").Index - 1

For i = Sheets("MLog_Int_SG").Index To (Sheets.Count - 14)


Sheets(i).Select False
Next i
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=False

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
how do I count only lower case "x" and exclude upper case "X" jbeletz Excel Worksheet Functions 3 October 14th 06 10:50 PM
Why is "History" a "reserved name" while naming Excel worksheets? Pradeep Excel Discussion (Misc queries) 1 June 30th 06 12:55 PM
Questionnaire sheet: Select "yes" or "no," and only one can be selected bpatterson Excel Worksheet Functions 2 April 13th 06 11:04 PM
if "a" selected from dropdown menu then show "K" in other cell LEGALMATTERS Excel Worksheet Functions 1 April 13th 06 06:05 PM
Auto "copy and paste" individual cells from various sheets into one sheet ?? [email protected] Excel Discussion (Misc queries) 2 March 1st 06 03:19 AM


All times are GMT +1. The time now is 01:29 AM.

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

About Us

"It's about Microsoft Excel"