#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default If Then

How do I need to state the following so that it will
work??

If ('Balance'!J23) 0 Then Sheets("Invoice").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
Collate:=True

Thank-you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default If Then

Hi
try
sub print_it()
if worksheets("Balance").range("J23").value0 then
worksheets("Invoice").printout Copies:=1, Collate:=True
end if
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


Jon M. wrote:
How do I need to state the following so that it will
work??

If ('Balance'!J23) 0 Then Sheets("Invoice").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
Collate:=True

Thank-you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default If Then


-----Original Message-----
Hi
try
sub print_it()
if worksheets("Balance").range("J23").value0 then
worksheets("Invoice").printout Copies:=1,

Collate:=True
end if
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


Jon M. wrote:
How do I need to state the following so that it will
work??

If ('Balance'!J23) 0 Then Sheets("Invoice").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1,
Collate:=True

Thank-you

.
Thanks, it works perfect.

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



All times are GMT +1. The time now is 04:57 AM.

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"