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!

open Microsoft Photo Editor using createobject 1

Status
Not open for further replies.

gungfukid

Programmer
Apr 9, 2001
9
GB
Can someone please tell me how I can open an instance of Microsoft Photo Editor using createobject. The Access help files only give an example of how to open an instance of Excel.

Thanks in advance
 
Hi gungfukid,

This will open Photo Editor on its own:
Call Shell("C:\Program Files\Common Files\Microsoft Shared\PhotoEd\PHOTOED.EXE", vbNormalFocus)


This will open Photo Editor with a specified image file:
Call Shell("""C:\Program Files\Common Files\Microsoft Shared\PhotoEd\PHOTOED.EXE"" ""C:\my documents\my pictures\Cliff in Clouds.jpg""", vbNormalFocus)

Edit the above if necessary if PHOTOED.EXE is in a different location on your PC.

Bill
 
Cheers billpower,

just what I needed and worked like a dream.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top