Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet that has a fixed number of rows, but
a variable number of columns that may contain data. I am trying to set the print area depending on how many columns have data. I have a looping structure in my code which moves through the columns and locates the last column containing data. This loop works correctly, but it returns a number. The printarea wants the R1C1 cell notation. I could preset my print area but more than likely in 90% of the cases, only half of the available columns or less will be used. I don't want to print the whole spreadsheet unless I need to so the printouts will be easy to read. I have tried using the Activecell.Address property and other methods to no avail. I am sure it is just a syntax problem, but I am not finding any good examples in the Helpless Help! Help! Thanks in advance. Kevin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting The Print-Area ? | New Users to Excel | |||
Setting print area | Excel Discussion (Misc queries) | |||
How to Dynamically Set Print Area | Excel Discussion (Misc queries) | |||
setting print area via VBA | Excel Programming | |||
Excel 2000 Dynamically Set Print Area | Excel Programming |