PC Review


Reply
Thread Tools Rate Thread

how can I print a worksheet without printing the first page?

 
 
TG
Guest
Posts: n/a
 
      26th Jun 2009

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 With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      26th Jun 2009

ActiveSheet.PrintOut From:=2



"TG" <(E-Mail Removed)> wrote in message
news:E59EAAD4-EB6C-4AD0-9228-(E-Mail Removed)...
>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 With Quote
 
TG
Guest
Posts: n/a
 
      26th Jun 2009

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" <(E-Mail Removed)> wrote in message
> news:E59EAAD4-EB6C-4AD0-9228-(E-Mail Removed)...
> >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 With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      26th Jun 2009

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" <(E-Mail Removed)> wrote in message
news:E9F9039D-B91D-4108-91E9-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:E59EAAD4-EB6C-4AD0-9228-(E-Mail Removed)...
>> >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 With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      26th Jun 2009

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" <(E-Mail Removed)> wrote in message
news:E9F9039D-B91D-4108-91E9-(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
>> news:E59EAAD4-EB6C-4AD0-9228-(E-Mail Removed)...
>> >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 With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      26th Jun 2009

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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:E9F9039D-B91D-4108-91E9-(E-Mail Removed)...
>> 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" <(E-Mail Removed)> wrote in message
>>> news:E59EAAD4-EB6C-4AD0-9228-(E-Mail Removed)...
>>> >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 With Quote
 
Archimedes' Lever
Guest
Posts: n/a
 
      27th Jun 2009
On Fri, 26 Jun 2009 11:44:01 -0700, TG <(E-Mail Removed)>
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.
 
Reply With Quote
 
Archimedes' Lever
Guest
Posts: n/a
 
      27th Jun 2009
Look up the help info on the "PrintOut" command.


On Fri, 26 Jun 2009 12:19:01 -0700, TG <(E-Mail Removed)>
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" <(E-Mail Removed)> wrote in message
>> news:E59EAAD4-EB6C-4AD0-9228-(E-Mail Removed)...
>> >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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print correct Page X of Y when printing single worksheet =?Utf-8?B?ZGJhcnJldHQ0NA==?= Microsoft Excel Misc 3 14th Apr 2006 03:34 AM
Excel Printing Problem - can't select Print area or Print Titles on Page Setup/Sheet Tab John Microsoft Excel Discussion 4 17th Feb 2006 12:36 PM
why would page 1 of an excel worksheet print smaller of page 2 if. =?Utf-8?B?aGlzZHJhbWEgcGVzdA==?= Microsoft Excel Misc 1 10th Jan 2005 07:14 PM
Print Preview/Printing doesn't display or print 1/3 of page Cat Microsoft Word New Users 1 9th Jan 2004 01:09 AM
Printing a 2 column, 2 page worksheet on one page Chuck Moore Microsoft Excel Worksheet Functions 0 25th Nov 2003 07:06 PM


Features
 

Advertising
 

Newsgroups
 


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