![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Waterdown, Ontario
Posts: 444
|
Have a spreadsheet which contains functions in 300 hundred rows.
Data is automatically imported using a macros. Not all 300 rows are used most of the time for each import. How do I set the Page Setup - Select Print Area to automatically select only the rows where data was imported? [ This Message was edited by: ammdumas on 2002-03-15 12:08 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
Try this:
ActiveSheet.PageSetup.PrintArea=ActiveCell.CurrentRegion.Address Hope this helps. Kind regards, Al. |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Waterdown, Ontario
Posts: 444
|
Thanks. Tried it but it still prints everything. I think it still sees the formulas in the unused cells. I think that's the problem.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|