Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Folks
I am looking for a piece of code which will enable me to print a selection, the selection being cells selected by AutoFiltering cells. At the moment I have code which filters cells, how do I then set this range as the print area? Any help appreciated. Thanks Will |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Only the visible cells (filtered data will be printed when you just do.. ActiveWindow.SelectedSheets.PrintOut Copies:=1 Abdul Salam Hi Folks I am looking for a piece of code which will enable me to print a selection, the selection being cells selected by AutoFiltering cells. At the moment I have code which filters cells, how do I then set this range as the print area? Any help appreciated. Thanks Will . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for that Abdul.
However, when I use the code, I get lots of blank lines appearing after the filtered data (my sheet has formatting which extends far beyond the end of the filtered data). Ideally, I am looking to get the filtered data onto 1 page if possible. Thanks Will -----Original Message----- Hi, Only the visible cells (filtered data will be printed when you just do.. ActiveWindow.SelectedSheets.PrintOut Copies:=1 Abdul Salam Hi Folks I am looking for a piece of code which will enable me to print a selection, the selection being cells selected by AutoFiltering cells. At the moment I have code which filters cells, how do I then set this range as the print area? Any help appreciated. Thanks Will . . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With ActiveSheet.PageSetup
.PrintArea = _ ActiveSheet.Autofilter.Range.Address(True,True,xlA 1,True) .FitToPagesWide = 1 .FitToPagesTall = 1 End With Activesheet.Printout -- Regards, Tom Ogilvy Will Francis wrote in message ... Thanks for that Abdul. However, when I use the code, I get lots of blank lines appearing after the filtered data (my sheet has formatting which extends far beyond the end of the filtered data). Ideally, I am looking to get the filtered data onto 1 page if possible. Thanks Will -----Original Message----- Hi, Only the visible cells (filtered data will be printed when you just do.. ActiveWindow.SelectedSheets.PrintOut Copies:=1 Abdul Salam Hi Folks I am looking for a piece of code which will enable me to print a selection, the selection being cells selected by AutoFiltering cells. At the moment I have code which filters cells, how do I then set this range as the print area? Any help appreciated. Thanks Will . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
set area in excel not giving me option to set print area? | Excel Discussion (Misc queries) | |||
Another Print Area question | Excel Discussion (Misc queries) | |||
Print Area Macro Question | Excel Discussion (Misc queries) | |||
File, print area, clear area, is not working | New Users to Excel | |||
How do you turn off a print area for a page? (no print area) | Excel Discussion (Misc queries) |