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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a Jpeg from Code

Status
Not open for further replies.

kopy

Technical User
May 30, 2002
141
US
I'm trying to create a Command Button that will open a jpeg with whatever default photo editor is on the user's machine. When I execute the following code I get the error "Object doesn't sup[port this obeject ofr method".

Dim CADObject As Object
Set CADObject = GetObject("C:\Impact Consulting\Computer Care Associates\H G Cockrill\Drawings\NoPic.jpg")
CADObject.Application.Visible = True

As always, any help will be greatly appreciated.
Thanks, Kopy
 
If your code is access VBA, you may try this:
Application.FollowHyperlink "C:\Impact Consulting\Computer Care Associates\H G Cockrill\Drawings\NoPic.jpg"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top