Excel 2003 VB code needs to run in Excel 2000

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2008
Posts: 1
Reputation: AndrewE is an unknown quantity at this point 
Solved Threads: 0
AndrewE AndrewE is offline Offline
Newbie Poster

Excel 2003 VB code needs to run in Excel 2000

 
0
  #1
Apr 7th, 2008
Hi
This VB code below runs fine in Excel 2003 under an object in a form and the file browser window opens nicely, allowing the navigation to and selection of a file. However, I need to have the same functionality running in an Excel 2000 environment. The problem is that this version of Excel does not recognize the 'msoFileDialogOpen' argument.

The user cannot at this stage move to 2003.

Please let me have some ide how to achieve the same look and function in the Excel 2000 environment. Your help is really appreciated. AndrewE

'------------------------------------------------------
' Open the file dialog to select a file
With Application.FileDialog(msoFileDialogOpen)
.AllowMultiSelect = False
.Show
FirstFileName = .SelectedItems(1)
Workbooks.Open (.SelectedItems(1))
End With
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC