+ Reply to Thread
Results 1 to 2 of 2

VBA msoFileDialogFolderPicker in Windows 7

  1. #1
    Registered User
    Join Date
    07-15-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    1

    VBA msoFileDialogFolderPicker in Windows 7

    Hello to you all


    I'm having trouble to run a VBA module in Excel2007 / Windows7, that was running ok from long time in Excel2003 / WindowsXP.

    A part of the module is:

    Application.FileDialog(msoFileDialogFolderPicker).Show
    sPath = CurDir & "\"

    The issue is that in Excel2007 / Windows7 it always retrieves a folder in a level up.

    Examples:
    In Excel2003 / WindowsXP the variable sPath gets the value C:\work\1st_quarter\
    In Excel2007 / Windows7 running the same code it gets C:\work\

    In Excel2003 / WindowsXP the variable sPath gets the value C:\work\1st_quarter\tables\
    In Excel2007 / Windows7 running the same code it gets C:\work\1st_quarter\

    As an intermediary step, it also ran without problems in Excel2007 / WindowsXP , so it seams the issue is Windows 7 interaction with msoFileDialogFolderPicker...

    Any clues?

    Thanks a lot
    Cheers

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: VBA msoFileDialogFolderPicker in Windows 7

    Please Login or Register  to view this content.



+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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