+ Reply to Thread
Results 1 to 2 of 2

Excel 2010 64-bit Browse for folder Dialog box

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-13-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2003, 2007
    Posts
    168

    Excel 2010 64-bit Browse for folder Dialog box

    Hi,
    One of my client uses Excel 2010 64 bit version. The following code runs perfectly on all the 32-bit versions of Excel. It is to open the dialog box to specify location to save the file.

    lpIDList = SHBrowseForFolder(tBrowseInfo)
    But now the excel stops functioning after coming to this code. I have to close the program and restart it.

    Does anyone know of this problem?

    Thanks & Regards,
    Vaibhav

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Excel 2010 64-bit Browse for folder Dialog box

    64 bit Excel does not always play well with APIs.

    Use this approach instead, works in 2003 as well

        With Application.FileDialog(msoFileDialogFolderPicker)
        
            .AllowMultiSelect = False
            If .show = -1 Then
    
                MsgBox .SelectedItems(1)
            End If
        End With

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1