Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are welcome, glad you got it figured out.
Jim Cone San Francisco, USA "Joe Farruggio" wrote in message Joe Farruggio wrote: The problem is solved. The macro now looks like this Sub Macro1() ' Macro1 Macro ' Macro recorded 11/23/2006 by Joe Farruggio Cells(1, 1).Select Num = Cells(2, 6).Value Numg = Cells(3, 3).Value x = Range(Cells(1, 1), Cells(9 + Num, 3 + Numg)).Address ActiveSheet.PageSetup.PrintArea = x ActiveWindow.ActiveSheet.PrintPreview End Sub Seems that all the other junk i had inserted during the testing phase was screwing up the works. Thanks again for your help- couldn't have done it without you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print Area Shifts | Excel Discussion (Misc queries) | |||
error when running cut & paste macro | Excel Worksheet Functions | |||
Macro to include Close Print Preview | Charts and Charting in Excel | |||
Setting up a macro to print? | Excel Worksheet Functions | |||
Changing print area | Excel Discussion (Misc queries) |