LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default PrintOut workSheet

DKY,

i think my problem was to add the new sheet (which to be printed )
to the end i.e to the right of list, so that's what i did

dim Nsht as worksheet
if Nsht is Nothing Then
worksheets.add after:= Worksheets(Worksheets.count)
end if

.....The rest of coding for printing just worked fine
thanks DKY, any further thoughts are welcome


"DKY" wrote:


well, I know nothing about VBA, but I did notice that "cout" needs an n
and "prinOut" needs a t. Also, should there be a space between Work
and Sheets? I'm just asking, like I said, I don't know much about this
stuff. So maybe make it look like this?

activeWorkbook.WorkSheets.Item(activeWorkbook.Work Sheets.Count).PrintOut


--
DKY
------------------------------------------------------------------------
DKY's Profile: http://www.excelforum.com/member.php...o&userid=14515
View this thread: http://www.excelforum.com/showthread...hreadid=275707


 
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
How do I create button to printout worksheet range in excel 2007? apaicello Excel Discussion (Misc queries) 1 February 26th 10 08:26 PM
my excel worksheet printout not straight helenakwek Excel Worksheet Functions 2 October 22nd 06 05:17 AM
no #VALUE! to printout garyww Excel Worksheet Functions 1 August 15th 06 10:15 AM
how do i elarge a printout of worksheet to cover printer paper [email protected] Excel Worksheet Functions 1 February 17th 06 12:16 AM
Problem with the PrToFileName parameter when using the Printout method on a worksheet Prasad Vanka Excel Programming 6 May 14th 04 10:56 AM


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

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

About Us

"It's about Microsoft Excel"