|
-
Aug 1st, 2005, 10:18 AM
#1
Thread Starter
Member
FileDialog Object for Excel 2000?
Hi,
I was wondering how do I make the FileDialog Object available for Excel 2000?
I understand it needs the Microsoft Office II.0 Object library, but to my understandings isn't available for Excel 2000 or earlier. Is there any replacement I can use if FileDialog is not available?
I understand there is an Application.Dialog object, but how do I access the filename and path from this object?
Any help would be apprecaited. Thanks!
-
Aug 1st, 2005, 10:28 AM
#2
Re: FileDialog Object for Excel 2000?
You can use the GetOpenFileName and GetSaveAsFileName dialogs from at least Excel 97+. Which dialogs are you in need of?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 1st, 2005, 11:05 AM
#3
Thread Starter
Member
Re: FileDialog Object for Excel 2000?
Hi Rob,
I need to use the getopenfile object. thanks! I guess I can try to search it through msdn, but meantime can you help me on how to use it? Specifically the properties such as directory and filename. Thanks!
-
Aug 1st, 2005, 11:19 AM
#4
Re: FileDialog Object for Excel 2000?
No problem. I know MSDN can be a pain to search. 
Here is a quick example.
VB Code:
'Application.GetSaveAsFilename "InitialFileName", "FileFilter", "FilterIndex", "Title", "ButtonText4MacintoshOnly"
Dim sFileName As String
sFileName = Application.GetSaveAsFilename("C:\Test.xls", "Excel Workbooks Only (*.xls),*.xls", 1, "My Save As Dialog")
ActiveWorkbook.SaveAs sFileName '"C:\Test.xls"
ActiveWorkbook.Saved = True 'Prevents the prompting to save the current workbook since we savedas.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 1st, 2005, 11:51 AM
#5
Thread Starter
Member
[RESOLVED] FileDialog Object for Excel 2000?
thank you very much! have a nice day
-
Aug 1st, 2005, 11:53 AM
#6
Re: FileDialog Object for Excel 2000?
Thanks for saying Thanks. Dont get too many of those.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 24th, 2007, 07:48 AM
#7
New Member
Re: FileDialog Object for Excel 2000?
Hi I am having a similar issue with Excel 2000. But I need to get a folder.
Thanks
-
Apr 24th, 2007, 08:50 AM
#8
Re: FileDialog Object for Excel 2000?
Use the same but save a file into the required destination. Then strip off the filename part of the filepath and name.
Instrrev and left functions should do it. Read up on those.
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Apr 24th, 2007, 11:45 PM
#9
Re: FileDialog Object for Excel 2000?
Search the forums for BrowseForFolder. Its an API solution but you only need to place it into a Module and then call as a function.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|