Hi,
We have a list of titles with related .iso files in Excel. Purpose is to select a title via a drop down list and then mount the corresponding iso file to drive F.
I have created the necessary drop down lists that, when changing start a macro getting the file name of the iso file to open but we always get the message "Can't mount ..." :bang:
The macro code I wrote is as follows :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim strOpenFile As String
Sheets("List").Range("C14").Value = Target.Value
If Sheets("List").Range("C15").Value <> "" Then
strOpenFile = Sheets("Parameters").Range("B2").Value & _
Sheets("List").Range("C15").Value & _
" /l=" & Sheets("Parameters").Range("B3").Value
Debug.Print strOpenFile
retval = Shell(strOpenFile)
End If
End Sub
strOpenFile contains
C:\Program Files\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe \\rimagebook\bibop\DO%20NOT%20OPEN%20CD/MED/61.03.01.096/medical%20%20policies%20May%202011.iso /l="F"
Also tried other more or less logic ways of defining strOpenFile but I always get the same result.
How to proceed ?
Thanks for your help !
Luc
We have a list of titles with related .iso files in Excel. Purpose is to select a title via a drop down list and then mount the corresponding iso file to drive F.
I have created the necessary drop down lists that, when changing start a macro getting the file name of the iso file to open but we always get the message "Can't mount ..." :bang:
The macro code I wrote is as follows :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim strOpenFile As String
Sheets("List").Range("C14").Value = Target.Value
If Sheets("List").Range("C15").Value <> "" Then
strOpenFile = Sheets("Parameters").Range("B2").Value & _
Sheets("List").Range("C15").Value & _
" /l=" & Sheets("Parameters").Range("B3").Value
Debug.Print strOpenFile
retval = Shell(strOpenFile)
End If
End Sub
strOpenFile contains
C:\Program Files\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe \\rimagebook\bibop\DO%20NOT%20OPEN%20CD/MED/61.03.01.096/medical%20%20policies%20May%202011.iso /l="F"
Also tried other more or less logic ways of defining strOpenFile but I always get the same result.
How to proceed ?
Thanks for your help !
Luc