Basically, i have a program that shows images and i want it to open the image currently selected with mspaint so they can edit it.
Currently i can open paint when the user clicks a button i have set out however i cannot get paint to open the file being viewed.
I get the error "File path not found" but i'm not sure why, i thought it would be as simple as adding the "filepath" variable onto it.
Here's the code i currently have:
--------------------------------------------------------
Option Explicit
Dim paint As String
Dim filepath As String
------------------------------------------------------
Private Sub cmdpaint_Click() 'Button to open paint'
paint = cmdpaint
filepath = File1.Path + "\" + File1.FileName 'File path of currently selected file'
If paint = True Then Shell "C:\WINDOWS\system32\mspaint.exe" & "filepath"
End Sub
Many thanks for your help :)