Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Erros when printing from a Validation list

Status
Not open for further replies.

Wray69

Technical User
Oct 1, 2002
299
0
0
US
I am trying to print each change in a validation list by using the following code;
Code:
Sub Print_all()
ActiveSheet.PrintOut
For Each c In Range("names")
    [J5] = Change.Value
ActiveSheet.PrintOut
Next
End Sub
When I attempt to run the code I am getting the following errors;

un-time error 1004 application defined or object defined error

or

method range of object worksheet failed

Anyone have any ideas?

Thanks,

Wray
 


Hi

This looks like VBA in Excel. You should be in forum707.
Code:
Sub Print_all()
ActiveSheet.PrintOut
For Each c In Range("names")
    [J5] = [red][b]C[/b][/red].Value
ActiveSheet.PrintOut
Next
End Sub

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
Oops, thanks Skip. Clicked on the Wrong forum. and I had that as a "C" and not Change, just typed it in here wrong.

Thanks,

Wray
 
Yeah, I still have the problem Skip....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top