Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need print code please

Hi all

Could someone let me have some code to print a workbook down as far as the
last used row.

Thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need print code please

Thanks Tom - but I can't delete rows or columns - I guess maybe what I'm
trying to do is change the print area to go down only as far as a row with a
certain value in column A (for instance) and then print

Any ideas please?

Cheers


"Tom Ogilvy" wrote in message
...
Activesheet.printout

if that is giving you more than you want, then you need to clean up you
sheet by delete entirerows that are unused and entirecolumns that are
unused, then saving the workbook.

for example in the name box

101:65536<cr
Edit =Delete
N:IV<cr
Edit=Delete
file=Save



--
Regards,
Tom Ogilvy


Rodders wrote in message
...
Hi all

Could someone let me have some code to print a workbook down as far as

the
last used row.

Thanks in advance






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need print code please

ActiveSheet.PageSetup.PrintArea = Range(cells(1,1),Cells( _
rows.count,1).end(xlup)).Resize(,10).Address(exter nal:=True)
Activesheet.Printout

--
Regards,
Tom Ogilvy


Rodders wrote in message
...
Thanks Tom - but I can't delete rows or columns - I guess maybe what I'm
trying to do is change the print area to go down only as far as a row with

a
certain value in column A (for instance) and then print

Any ideas please?

Cheers


"Tom Ogilvy" wrote in message
...
Activesheet.printout

if that is giving you more than you want, then you need to clean up you
sheet by delete entirerows that are unused and entirecolumns that are
unused, then saving the workbook.

for example in the name box

101:65536<cr
Edit =Delete
N:IV<cr
Edit=Delete
file=Save



--
Regards,
Tom Ogilvy


Rodders wrote in message
...
Hi all

Could someone let me have some code to print a workbook down as far as

the
last used row.

Thanks in advance








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print code Very Basic User Excel Discussion (Misc queries) 4 February 25th 10 09:08 PM
Print Code aftamath77 Excel Discussion (Misc queries) 3 October 6th 08 03:49 PM
Print Code Scott Excel Discussion (Misc queries) 2 September 8th 08 04:36 PM
Print Code Sunday88310 Excel Discussion (Misc queries) 2 August 3rd 07 07:20 AM
Print Code Chey Excel Discussion (Misc queries) 1 April 13th 07 08:18 PM


All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"