Selecting folder for file output in VBA

Controller

New Member
Joined
Jun 19, 2002
Messages
27
Hello all!

I want to give the user the posibility of chosing the folder for the output file. Of course I am talking about navigating through folders up to getting the desired one and not puting the folder path in a message box.

The code could be:

THISSHOULDBETHEFOLDER= ??????????????
Open THISSHOULDBETHEFOLDER & "FILENAME.TXT" For Output As #1

Any idea?

Thank you!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Controller

New Member
Joined
Jun 19, 2002
Messages
27
On 2002-09-03 07:43, Juan Pablo G. wrote:
Controller, I just did a search using Browse Folder and chose "All Words", and got 36 results on that. Try it out.

Lo siento, yo soy el primero que se molesta cuando se pregunta sin mirar. Habia intentado la busqueda en Google sin exito.

No se me ocurrió buscar en el foro

Disculpas

(Only apologizing for asking without searching first...)
This message was edited by Controller on 2002-09-03 12:19
 

Forum statistics

Threads
1,181,534
Messages
5,930,462
Members
436,741
Latest member
buckeyerich

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top