473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Trying to Create a Folder Browser Dialog in my Macro

Currently my code points directly to a directory but I want to be able to give people a choice as to which directory to go to. Any assistance is appreciated:

Expand|Select|Wrap|Line Numbers
  1. Dim objFSO
  2.     Set objFSO = CreateObject("Scripting.FileSystemObject")
  3.  
  4.     If bCriminal Then
  5.         CaseFolderPart1 = "N:\Criminal Open\" & Me.TextFirstName.Text
  6.     End If
  7.     If bDefense Then
  8.         CaseFolderPart1 = "N:\Civil Open\" & Me.TextFirstName.Text
  9.     End If
  10.     If bTest Then
  11.         CaseFolderPart1 = "N:\Test\" & Me.TextLastName.Text
  12.     End If
Feb 12 '14 #1
0 1015

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jacek Jurkowski | last post by:
Does anybody know why Folder Browser Dialog stops to show folders while run from some form with image? If I clear Image property of Picture Box Folder Browser works fine after image restore it...
6
by: Justin F. | last post by:
In my app I want the users to be able to select a folder to do their work in. The FolderBrowserDialog is a great way to do this, but I don't want to have a dialog pop up every time they want to...
1
by: Dustin | last post by:
When trying to use a folder browser dialog, my application freezes. I found this is only when I set the default to "MyDocuments". Has anyone experienced something similar. I'm thinking it's a...
0
by: amyl | last post by:
Is there a control that puts the functionality of the folder browser dialog into a combo box control similar to how CuteFTP does it (see -...
0
by: SR | last post by:
I am writing an configuration tool using ASP.NET. Some of the configuration features are Local file paths such as "C:\My Application\Settings". I need to allow a user to browse the local file...
0
by: masoumeh | last post by:
I want to use the FolderBrowserDialog in a web application but it is available in windows and Inherited form CommonDialog. Should I write the calss that it's inherits CommonDialog if I want to...
2
by: mmoeller | last post by:
I'd like to link a browser box to a button click event. Once the browsed location is selected I would like to populate a text box with the result.Sorry if this is a simple question, but I'm new and...
6
by: kimiraikkonen | last post by:
Hello, I have a listbox and folder browser control. I need to display all .mp3 files' pathes into listbox. It was Ok with openfiledialog but how can list all .mp3 extension- having files into...
5
by: David Veeneman | last post by:
I'm trying to implement some fairly standard behavior (or so I thought) on a FolderBrowserDialog component. double-clicking a folder in the dialog should have the same effect as selecting the...
3
by: Moshiko | last post by:
Hi guys, I am writing a website and I would like to write a user control (ActiveX? DLL?) that can open the Windows Folder Browse Dialog from the client. I do have a user control (a DLL...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.