View Single Post
Old 01-24-2012, 10:38 PM   #418
Gauthier
Enthusiast
Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'Gauthier knows the difference between 'who' and 'whom'
 
Posts: 25
Karma: 10000
Join Date: Jan 2012
Device: kindle
Browsing for Calibre, current version always goes to the parent.
don't know why really...

Correction, pick the dir of the executable using a file picker instead:
in frmCalibreAllFormat Add:

Code:
Private Function BrowserCalibre()
    On Error GoTo Err_Clr

    Dim bDisplayVal As Boolean
    Dim szDocName As String
    Dim szPath As String
    Dim defpath As String
    
    bDisplayVal = False
       
    With Application.FileDialog(msoFileDialogFilePicker)
        .AllowMultiSelect = False
        .Title = "Please select The Calibre Executable"
        .Filters.Clear
        .Filters.Add "Applications", "*.EXE"
        
        bDisplayVal = .Show
        szPath = CurDir
    End With

    If bDisplayVal = -1 Then
        BrowserCalibre = szPath
    End If
    
    Exit Function
    
Err_Clr:
    If Err <> 0 Then
    Err.Clear
    Resume Next
    End If
    

End Function
and change
Code:
Private Sub cmdPathtoCalibre_Click()
    txtCalibrePath.Text = BrowserCalibre
End Sub

Last edited by Gauthier; 01-24-2012 at 11:25 PM.
Gauthier is offline   Reply With Quote