Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to setup a macro (for now) that either:
Allows me to use an input box to type in a range name which is then sent to Print Preview or Allows me select a range name from a list, such as Range Names: Pg_1 Pg_2 Pg_3 etc and then would likewise send the range to Print Preview These ranges are spread out across several worksheets so, selection of the range would have to take that into account as well. I thought this wouldn't be too difficult, but, I've been working on this for a few days now with no luck. Thanx. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way
On a empty sheet Insert NamePaste Paste list You can use this macro when you have select a name in the A column Sub test() On Error Resume Next Range(ActiveCell.Value).PrintPreview On Error GoTo 0 End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "spurtniq" wrote in message ... I'd like to setup a macro (for now) that either: Allows me to use an input box to type in a range name which is then sent to Print Preview or Allows me select a range name from a list, such as Range Names: Pg_1 Pg_2 Pg_3 etc and then would likewise send the range to Print Preview These ranges are spread out across several worksheets so, selection of the range would have to take that into account as well. I thought this wouldn't be too difficult, but, I've been working on this for a few days now with no luck. Thanx. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() spurtnic, this aint perfect, but it'll do what you want: Sub GoAndPreView() if Application.Dialogs(xlDialogFormulaGoto).Show then ActiveSheet.PageSetup.PrintArea = Selection.Address ActiveSheet.PrintPreview endif End Sub keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool spurtniq wrote: I'd like to setup a macro (for now) that either: Allows me to use an input box to type in a range name which is then sent to Print Preview or Allows me select a range name from a list, such as Range Names: Pg_1 Pg_2 Pg_3 etc and then would likewise send the range to Print Preview These ranges are spread out across several worksheets so, selection of the range would have to take that into account as well. I thought this wouldn't be too difficult, but, I've been working on this for a few days now with no luck. Thanx. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Both solutions!
Thank you very much! ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
List Box - For Input Range can I use named range in another workbo | Excel Worksheet Functions | |||
print preview v page break preview | Excel Discussion (Misc queries) | |||
Print Blank Pgs - Preview margins outside print range | Excel Discussion (Misc queries) | |||
Input Range for a List Box | Excel Worksheet Functions | |||
input range in drop down list | Excel Discussion (Misc queries) |