A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Macro



 
 
Thread Tools Display Modes
  #1  
Old April 17th, 2009, 12:27 PM posted to microsoft.public.excel.worksheet.functions
Lois
external usenet poster
 
Posts: 88
Default Macro

Hi
i have the following macro set up & linked to a customised button on my
toolbar:
Sub Ken_Full_Screen_View()
'
' Ken_View Macro
' Macro recorded 01/04/2009 by lois
'

'
ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets(Array("Cover Sheet", "FAULTS BY Nº", "FAULTS BY COST", "Summary",
"No 1", _
"No 2", "No 3", "No 4", "No 5", "No 6", "No 7", "No 8")).Select
Sheets("Cover Sheet").Activate
ActiveWindow.SelectedSheets.PrintPreview
End Sub

is there any way to generalise it so that i can use it on any workbook?
--
Lois
  #2  
Old April 17th, 2009, 12:44 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Macro

ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets.Select
Sheets(1).Activate
ActiveWindow.SelectedSheets.PrintPreview

If this post helps click Yes
---------------
Jacob Skaria


"Lois" wrote:

Hi
i have the following macro set up & linked to a customised button on my
toolbar:
Sub Ken_Full_Screen_View()
'
' Ken_View Macro
' Macro recorded 01/04/2009 by lois
'

'
ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets(Array("Cover Sheet", "FAULTS BY Nº", "FAULTS BY COST", "Summary",
"No 1", _
"No 2", "No 3", "No 4", "No 5", "No 6", "No 7", "No 8")).Select
Sheets("Cover Sheet").Activate
ActiveWindow.SelectedSheets.PrintPreview
End Sub

is there any way to generalise it so that i can use it on any workbook?
--
Lois

  #3  
Old April 17th, 2009, 01:33 PM posted to microsoft.public.excel.worksheet.functions
Lois
external usenet poster
 
Posts: 88
Default Macro

thanks,
is there a macro that i can use when i click close on the print preview
screen, to zoom the workbook back to 100 & ungroup all the sheets?
--
Lois


"Jacob Skaria" wrote:

ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets.Select
Sheets(1).Activate
ActiveWindow.SelectedSheets.PrintPreview

If this post helps click Yes
---------------
Jacob Skaria


"Lois" wrote:

Hi
i have the following macro set up & linked to a customised button on my
toolbar:
Sub Ken_Full_Screen_View()
'
' Ken_View Macro
' Macro recorded 01/04/2009 by lois
'

'
ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets(Array("Cover Sheet", "FAULTS BY Nº", "FAULTS BY COST", "Summary",
"No 1", _
"No 2", "No 3", "No 4", "No 5", "No 6", "No 7", "No 8")).Select
Sheets("Cover Sheet").Activate
ActiveWindow.SelectedSheets.PrintPreview
End Sub

is there any way to generalise it so that i can use it on any workbook?
--
Lois

  #4  
Old April 17th, 2009, 01:54 PM posted to microsoft.public.excel.worksheet.functions
Lois
external usenet poster
 
Posts: 88
Default Macro

Hi,
i have copied the macro unto another workbook & tried to run it, but it wont
run as it doesnt like the 'Sheets.Select' why has this happened & is there
any way to fix it??
--
Lois


"Jacob Skaria" wrote:

ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets.Select
Sheets(1).Activate
ActiveWindow.SelectedSheets.PrintPreview

If this post helps click Yes
---------------
Jacob Skaria


"Lois" wrote:

Hi
i have the following macro set up & linked to a customised button on my
toolbar:
Sub Ken_Full_Screen_View()
'
' Ken_View Macro
' Macro recorded 01/04/2009 by lois
'

'
ActiveWindow.Zoom = 400
ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets(Array("Cover Sheet", "FAULTS BY Nº", "FAULTS BY COST", "Summary",
"No 1", _
"No 2", "No 3", "No 4", "No 5", "No 6", "No 7", "No 8")).Select
Sheets("Cover Sheet").Activate
ActiveWindow.SelectedSheets.PrintPreview
End Sub

is there any way to generalise it so that i can use it on any workbook?
--
Lois

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.