How can I open the "Open file" dialog from some VBA running in Excel?
I am using Excel 2003.
You need a function Application.GetOpenFilename. Copy from VBA Object Browser:
Application.GetOpenFilename
Function GetOpenFilename ([FileFilter], [FilterIndex], [Title], [ButtonText], [MultiSelect]) Excel.Application Member
Add a link to ComDLG32.OCX, and then something like ...
Sub PromptForFile() Dim d As New MSComDlg.CommonDialog d.Filter = "xls" d.Filename = "*.xls" d.ShowOpen Excel.Workbooks.Open d.Filename Set d = Nothing End Sub
Source: https://habr.com/ru/post/1698515/More articles:ΠΡΠΆΠ½ΠΎ Π»ΠΈ ΠΏΠΎΠ»Π½ΠΎΠΌΡ userdata __gc metamethod ΠΎΡΠ²ΠΎΠ±ΠΎΠΆΠ΄Π°ΡΡ() Π΅Π³ΠΎ ΠΏΠ°ΠΌΡΡΡ? - garbage-collectionMoss 2007: Changing the label of a search option (advanced search) - searchAssembly sharing - designBest way to remove an item in a known place from an XML string using DotNet? - xmlRemoving a character sequence from a large binary using python - pythonHow to get the button that is inside asp: UpdatePanel to refresh the whole page? - triggersUdpClient, Receive () immediately after sending () does not work? - c #How to display events on a calendar using Ruby? - ruby ββ| fooobar.comΠΠ°ΠΊ ΠΎΡΠΊΡΡΡΡ EJB ΠΊΠ°ΠΊ Π²Π΅Π±-ΡΠ΅ΡΠ²ΠΈΡ, ΠΊΠΎΡΠΎΡΡΠΉ ΠΏΠΎΠ·ΠΆΠ΅ ΠΏΠΎΠ·Π²ΠΎΠ»ΠΈΡ ΠΌΠ½Π΅ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°ΡΡ ΡΠΎΠ²ΠΌΠ΅ΡΡΠΈΠΌΠΎΡΡΡ ΠΊΠ»ΠΈΠ΅Π½ΡΠ° ΠΏΡΠΈ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΈ ejb? - javaC ++ / CLI from the MFC DLL Extension Library - mfcAll Articles