Open a picture file in fullscreen mode (F11) through Windows Photo Viewer

Aerith

New Member
Joined
Mar 4, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello,

I found this code in another topic:

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

If I run it, it opens a picture I define through the FILEPATH, but it only opens and maximizes the window.
Try to open a picture with Windows Photo Viewer and press F11, you will see it fills your screen entirely with the picture, no top bar, no window task bar etc...

How can I do this? I am sure it is only a minimal step that is missing...
Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I found a list of the exported functions, you can see the "ImageView_Fullscreen" among them.

I don't want to start a slide show (namely F11), I just want the picture maximized fully.
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top