ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If Then (https://www.excelbanter.com/excel-programming/305062-if-then.html)

Jon M.[_2_]

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

Frank Kabel

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


Jon M.[_2_]

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.



All times are GMT +1. The time now is 12:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com