API: File picker dialog

API: File picker dialog

DWhiteley
Advisor Advisor
532 Views
2 Replies
Message 1 of 3

API: File picker dialog

DWhiteley
Advisor
Advisor

A real basic question, sorry.

In my VBA macro I want to open the file dialog to choose a file.

How do I do it in the FC API?

 

Thanks in advance.

 

Dave 

0 Likes
533 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

OK found it:

 

GetFilePath()

0 Likes
Message 3 of 3

kelbie.ockey
Alumni
Alumni

Excellent timing on this!  I've recently been (finally) starting to learn FC's API. Selfishly, your question was a great opportunity to further my own learning!

 

I believe FindFile is what you are looking for. The following code should simply open the dialog:

 

Dim chooseFile As Boolean
chooseFile = Application.FindFile()

 

Hopefully, that's helpful. Let me know if you have any further questions.



Kelbie Ockey
Sr. Implementation Consultant
0 Likes