Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tg tg is offline
external usenet poster
 
Posts: 58
Default how can I print a worksheet without printing the first page?


I have a worksheet that I would like to print, but I would like to skip page
one all the time. I dont want the user to click print and then select what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default how can I print a worksheet without printing the first page?


ActiveSheet.PrintOut From:=2



"TG" wrote in message
...
I have a worksheet that I would like to print, but I would like to skip
page
one all the time. I dont want the user to click print and then select what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG



  #3   Report Post  
Posted to microsoft.public.excel.programming
tg tg is offline
external usenet poster
 
Posts: 58
Default how can I print a worksheet without printing the first page?


THanks,

I tried it but it give me a compile error: invalid outside procedure and it
highlights the number 2.. any ideas?

"JLGWhiz" wrote:

ActiveSheet.PrintOut From:=2



"TG" wrote in message
...
I have a worksheet that I would like to print, but I would like to skip
page
one all the time. I dont want the user to click print and then select what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default how can I print a worksheet without printing the first page?


Without seeing the code you are trying to run, it is difficult to tell. It
worked for me on a test where I created a sheet with more than one page.
You could try using the sheet name instead of ActiveSheet.

Sub dk()]
Sheets("Sheet1").PrintOut From:=2
End Sub


"TG" wrote in message
...
THanks,

I tried it but it give me a compile error: invalid outside procedure and
it
highlights the number 2.. any ideas?

"JLGWhiz" wrote:

ActiveSheet.PrintOut From:=2



"TG" wrote in message
...
I have a worksheet that I would like to print, but I would like to skip
page
one all the time. I dont want the user to click print and then select
what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default how can I print a worksheet without printing the first page?


You need to put that *inside* a procedure of some kind (macro or event). I'm
sure JLGWhiz assumed you had other code controlling the print process and
wanted to add this feature to that code. Something like...

Sub YourMacroName()
'....
'.... <<Start of your code goes here
'....
ActiveSheet.PrintOut From:=2
'....
'.... <<Rest of your code goes here
'....
End Sub
--
Rick (MVP - Excel)


"TG" wrote in message
...
THanks,

I tried it but it give me a compile error: invalid outside procedure and
it
highlights the number 2.. any ideas?

"JLGWhiz" wrote:

ActiveSheet.PrintOut From:=2



"TG" wrote in message
...
I have a worksheet that I would like to print, but I would like to skip
page
one all the time. I dont want the user to click print and then select
what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,104
Default how can I print a worksheet without printing the first page?


Or the single line of code could be run from the Immediate window
but not a likely scenario!
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Rick Rothstein" wrote in message
...
You need to put that *inside* a procedure of some kind (macro or event).
I'm sure JLGWhiz assumed you had other code controlling the print process
and wanted to add this feature to that code. Something like...

Sub YourMacroName()
'....
'.... <<Start of your code goes here
'....
ActiveSheet.PrintOut From:=2
'....
'.... <<Rest of your code goes here
'....
End Sub
--
Rick (MVP - Excel)


"TG" wrote in message
...
THanks,

I tried it but it give me a compile error: invalid outside procedure and
it
highlights the number 2.. any ideas?

"JLGWhiz" wrote:

ActiveSheet.PrintOut From:=2



"TG" wrote in message
...
I have a worksheet that I would like to print, but I would like to skip
page
one all the time. I dont want the user to click print and then select
what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default how can I print a worksheet without printing the first page?

On Fri, 26 Jun 2009 11:44:01 -0700, TG
wrote:


I have a worksheet that I would like to print, but I would like to skip page
one all the time. I dont want the user to click print and then select what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG

Write a script that highlights all the sheets you want to print, and
the print task then only prints those sheets in its default manner, which
is "selected".

The user can also manually highlight sheets tabs and leave out the
undesired sheet(s). The print task always defaults to the selected
sheet(s), so you can even have it skip the print dialog completely
through the script, or manually by using the print icon.
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default how can I print a worksheet without printing the first page?

Look up the help info on the "PrintOut" command.


On Fri, 26 Jun 2009 12:19:01 -0700, TG
wrote:


THanks,

I tried it but it give me a compile error: invalid outside procedure and it
highlights the number 2.. any ideas?

"JLGWhiz" wrote:

ActiveSheet.PrintOut From:=2



"TG" wrote in message
...
I have a worksheet that I would like to print, but I would like to skip
page
one all the time. I dont want the user to click print and then select what
pages to print, I would like this to be done automatically.
Can it be done?

THanks,

TG




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
Printing On One Page Using Print-Area whynot Excel Discussion (Misc queries) 6 October 2nd 07 07:11 PM
printing a document print to fit whilst utilizing the whole page Curves Excel Discussion (Misc queries) 0 June 27th 06 05:56 AM
Print correct Page X of Y when printing single worksheet dbarrett44 Excel Discussion (Misc queries) 3 April 14th 06 03:34 AM
How can I print repeating rows on every page when printing? mamallama Excel Discussion (Misc queries) 3 March 9th 06 12:24 AM
Printing second page if data overruns, otherwise print first page playdohstu Excel Programming 1 February 12th 04 02:08 PM


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