PC Review


Reply
Thread Tools Rate Thread

Creating a print-macro that'll only print page 1?

 
 
Anders M
Guest
Posts: n/a
 
      21st May 2011
Hi,

I have a spreadsheet that contains multiple sheets. I want to add a
button that runs a macro, which only prints page 1 on the first sheet
(called Scorekort).

The "Scorekort" sheet contains 13 pages in total, but I only want to
print the first page.

Any ideas for this macro?

Anders
 
Reply With Quote
 
 
 
 
isabelle
Guest
Posts: n/a
 
      21st May 2011
hi,

Sub Macro1()
Sheets("Scorekort").PrintOut From:=1, To:=1, Copies:=1, Preview:=True, Collate:=True
End Sub

if you don't want a print preview, Preview:=False


--
isabelle


Le 2011-05-21 04:16, Anders M a écrit :
> Hi,
>
> I have a spreadsheet that contains multiple sheets. I want to add a button that runs a macro, which only prints page 1 on the first sheet (called Scorekort).
>
> The "Scorekort" sheet contains 13 pages in total, but I only want to print the first page.
>
> Any ideas for this macro?
>
> Anders

 
Reply With Quote
 
Anders M
Guest
Posts: n/a
 
      24th May 2011
Superb!

Thank you

Den 21-05-2011 16:21, isabelle skrev:
> hi,
>
> Sub Macro1()
> Sheets("Scorekort").PrintOut From:=1, To:=1, Copies:=1, Preview:=True,
> Collate:=True
> End Sub
>
> if you don't want a print preview, Preview:=False
>
>


 
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
creating a macro to print PDF law8787 Microsoft Excel Programming 5 23rd Mar 2008 05:03 AM
Creating Print Macro =?Utf-8?B?Q29uZnVzZWQ=?= Microsoft Excel Misc 1 30th Apr 2007 12:53 PM
Creating a "print current page" macro or button =?Utf-8?B?RGF2aWQgQi4gQXBwbGV0b24=?= Microsoft Word Document Management 4 17th Feb 2007 07:25 AM
need help creating macro to auto print =?Utf-8?B?VmF1Z2hu?= Microsoft Word Document Management 1 17th Feb 2005 06:28 PM
Need macro to print each page as a different print job. Karen Schneider Microsoft Access Macros 2 27th Aug 2004 05:14 AM


Features
 

Advertising
 

Newsgroups
 


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