Re: $$Excel-Macros$$ printing doubt

2012-03-28 Thread jmothilal
Thanks to Noorain Ansari, , Abhishek Jain Mothilal On Wed, Mar 28, 2012 at 11:09 AM, Abhishek Jain wrote: > Use below code for printing all sheets in a workbook - > > Option Explicit > > Sub PrintallSheets() > Dim ws As Worksheet > For Each ws In ActiveWorkbook.Worksheets > ws.PrintOut > Next w

Re: $$Excel-Macros$$ printing doubt

2012-03-27 Thread Shankar Bheema
thank you noorain bhai On Wed, Mar 28, 2012 at 11:20 AM, NOORAIN ANSARI wrote: > Dear Mothilal, > > You can use below code to printout all sheets of workbook > > Sub print_allsheetofworkbook() > Dim sh As Worksheet > For Each sh In ActiveWorkbook.Sheets > sh.PrintOut From:=1, to:=1 > Next sh > En

Re: $$Excel-Macros$$ printing doubt

2012-03-27 Thread NOORAIN ANSARI
Dear Shankar, You can also use.. Sub Print_setup() Application.Dialogs(xlDialogPrint).Show End Sub On Tue, Mar 27, 2012 at 12:23 PM, Shankar Bheema wrote: > Dear experts > > for a command button of an userform for Printing of sheets purpose I am > using code as > > sheets("sheet1").printout >

Re: $$Excel-Macros$$ printing doubt

2012-03-27 Thread Abhishek Jain
Sheets("Sheet1").PrintOut From:=3, To:=3 On Tue, Mar 27, 2012 at 12:23 PM, Shankar Bheema wrote: > Dear experts > > for a command button of an userform for Printing of sheets purpose I am > using code as > > sheets("sheet1").printout > > whereas, i need to print 3rd page of sheet1 everytime, so

$$Excel-Macros$$ printing doubt

2012-03-26 Thread Shankar Bheema
Dear experts for a command button of an userform for Printing of sheets purpose I am using code as sheets("sheet1").printout whereas, i need to print 3rd page of sheet1 everytime, so what change is required in the above code to get only 3rd page. regards shankar sb -- FORUM RULES (986+ membe