Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try this, hope it helps. Sub Corner1() Cells.Find(What:="corner", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate Corner = ActiveCell.Address ActiveSheet.PageSetup.PrintArea = "$A$1:" & Corner End Sub Thanks, "Paul H" wrote: I want to print a sheet with the upper left point being A1 with the bottom right point variable. I could put a word in the cell (i.e. corner), I need a macro to look through the sheet and find the word "corner" this would then be used as the bottom right point for the print setup. Any ideas? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions | |||
Set Print Area with a macro | Excel Programming | |||
Set Print Area Macro | Excel Programming | |||
Macro to select the print area | Excel Programming |