PC Review


Reply
Thread Tools Rate Thread

How to print multiple sections from different worksheets

 
 
Mas
Guest
Posts: n/a
 
      9th Oct 2011
Hi all,

I have two worksheets titled "Data" and "Report" in a workbook.

I would like to give the user an option either to print a section of the
"report" worksheet i.e. A1 to G10 which includes a table of text and a
chart or to print the data (A1 to C10) from the data worksheet or the
user can print both of the two options.

I hope someone can help me with this one as it would make my workbook
look so much cleaner and simpler for the user.

Thanks in advance.
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      9th Oct 2011
Try this macro assigned to a button/or printer shape
Sub doyouwanttopring()
ans1 = MsgBox("Do you want to print this", vbYesNo)
ans2 = MsgBox("Do you want to print this two", vbYesNo)
If ans1 = vbYes Then Sheets("report").Range("a1:g10").prinout
If ans2 = vbYes Then Sheets("data").Range ("a1:c10")
End Sub


On Oct 9, 3:25*am, Mas <n...@company.com> wrote:
> Hi all,
>
> I have two worksheets titled "Data" and "Report" in a workbook.
>
> I would like to give the user an option either to print a section of the
> "report" worksheet i.e. A1 to G10 which includes a table of text and a
> chart or to print the data (A1 to C10) from the data worksheet or the
> user can print both of the two options.
>
> I hope someone can help me with this one as it would make my workbook
> look so much cleaner and simpler for the user.
>
> Thanks in advance.


 
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
Possible to have various sections of worksheets print on 1 page? Respite Barb Microsoft Excel Worksheet Functions 1 28th Apr 2010 07:51 PM
Numbering sections and sub-sections Lew Yedwab Microsoft Word Document Management 1 21st Aug 2009 08:42 PM
the sections button to protect sections of a document =?Utf-8?B?ZXhoYXVzdGVkIGV2ZXJ5dGhpbmc=?= Microsoft Word Document Management 1 22nd Feb 2006 09:58 AM
protect form sections only with objects in other sections =?Utf-8?B?Y21hdGg=?= Microsoft Word Document Management 1 9th Apr 2005 05:31 PM
different footnote styles in different sections Mie Microsoft Word Document Management 0 2nd Sep 2003 10:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:28 PM.