Hello
I do not know what is happening. Even though Windows PhotoGallery gets open
with the next statements, it does not open the picture I want. However if I
try to replace the string C:\Program Files\Windows Photo Gallery\WindowsPhotoGallery.exe with C:\Windows\System32\mspaint.exe, then Paint will open the picture.
Why is Windows PhotoGallery not opening the picture as I expect? Instead, it just gets opened but without no picture in big size.
Dim sPaint As String
Dim sPicture As String
sPaint = "C:\Program Files\Windows Photo Gallery\WindowsPhotoGallery.exe"
sPicture = "C:\Users\Fujitsu\Desktop\DSCN7408.JPG"
Dim command As String
command = """" & sPaint & """ """ & sPicture & """"
Shell command, vbNormalFocus
Thanks




Reply With Quote