How to show a full screen JPG

Some videos you may like

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
5,292
Office Version
365
Platform
Windows
This is what I use with Windows10
- amend the filepath

Code:
Sub jpg()
    Dim FILEPATH As String
    FILEPATH = "C:\Users\yongle\Pictures\whatever.jpg"
    Shell "RunDLL32.exe C:\Windows\System32\Shimgvw.dll,ImageView_Fullscreen " & FILEPATH
End Sub
 
Last edited:

6diegodiego9

New Member
Joined
Jan 9, 2018
Messages
26
This is what I use with Windows10
- amend the filepath

Code:
Sub jpg()
    Dim FILEPATH As String
    FILEPATH = "C:\Users\yongle\Pictures\whatever.jpg"
    Shell "RunDLL32.exe C:\Windows\System32\Shimgvw.dll,ImageView_Fullscreen " & FILEPATH
End Sub

Thanks but on my Windows 7 it just opens the JPG in a Windows Photo Viewer (not full-screen) window :(
 

Watch MrExcel Video

Forum statistics

Threads
1,089,961
Messages
5,411,527
Members
403,375
Latest member
vba33

This Week's Hot Topics

Top