Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
in the following code .... activeWorkbook.WorkSheets.Item(activeWorkbook.Work Sheets.Cout).PrinOut .... Nothing happen, i.e No print out produced ! But when changed for example to : .... activeWorkbook.WorkSheets.Item(4).PrintOut ..... Things work fine , i.e the print will be produced any explanation and help please. thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() well, I know nothing about VBA, but I did notice that "cout" needs an and "prinOut" needs a t. Also, should there be a space between Wor and Sheets? I'm just asking, like I said, I don't know much about thi stuff. So maybe make it look like this? activeWorkbook.WorkSheets.Item(activeWorkbook.Work Sheets.Count).PrintOu -- DK ----------------------------------------------------------------------- DKY's Profile: http://www.excelforum.com/member.php...fo&userid=1451 View this thread: http://www.excelforum.com/showthread.php?threadid=27570 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks, DKy for your observations
But in my actual coding typing was ok no errors, count with "n" and PrintOut with "t" and there should be no space in worksheets thanks again. "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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create button to printout worksheet range in excel 2007? | Excel Discussion (Misc queries) | |||
my excel worksheet printout not straight | Excel Worksheet Functions | |||
no #VALUE! to printout | Excel Worksheet Functions | |||
how do i elarge a printout of worksheet to cover printer paper | Excel Worksheet Functions | |||
Problem with the PrToFileName parameter when using the Printout method on a worksheet | Excel Programming |