Open image in VBA

The solution for “Open image in VBA” can be found here. The following code will assist you in solving the problem.

sCmd = “rundll32.exe %windir%\system32\shimgvw.dll,ImageView_Fullscreen”
sImageName = “C:\Someplace\StudentImage.jpg”
set oWS = createobject(“”)
set oExec = oWS.Exec(sCmd & ” ” & sImageName)

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts