Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

browsing

ResolvedVersion 2003

Oliver has attended:
Excel VBA Intro Intermediate course

Browsing

Create vba code to browse your c:?

RE: Browsing

Hi Oliver,

Hope you found the training useful. Regarding to your question, you can add create a macro or draw a command button to attach the following code:

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim FileName As String

ChDir "C:\"
FileName = Application.GetOpenFilename

Exit Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

The application method GetOpenFilename brings up the Open File window while ChDir changes to looks into a file path.

See if this helps.

Regards,

Katie
Microsoft Certified Trainer

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Finding your worksheets quickly

The arrows to the left of the worksheets are used to move between one sheet at a time or first / last worksheet, but if you right click on the arrow buttons it gives you all worksheets in your workbook.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.