473,498 Members | 310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBA locate and save as

158 New Member
What I am doing is (1) having a user press a button, which has a msgbox pop up and asks if they would like to find a file. (2) if the user clicks yes then (3) open up a dialog box so that they can search through their computer and select the file. (4) Once they select the file i need it to be saved as "file1". I know how to do everything up to step 2. Any help is greatly appreciated!

thanks!
Aug 6 '08 #1
2 1686
missinglinq
3,532 Recognized Expert Specialist
Here's a sample database called FileGrabber from a gentleman name Ken Getz that demonstrates how to open the File Dialog box and select a file. Be sure to look at the module that does most of the work, as well as the copyright notice. The code is free to use as long as you keep the copyright notice in place.

Linq ;0)>
Attached Files
File Type: zip FileGrabber.zip (34.4 KB, 76 views)
Aug 6 '08 #2
Jollywg
158 New Member
Here's a sample database called FileGrabber from a gentleman name Ken Getz that demonstrates how to open the File Dialog box and select a file. Be sure to look at the module that does most of the work, as well as the copyright notice. The code is free to use as long as you keep the copyright notice in place.

Linq ;0)>

Thanks for the response! That helps out A LOT. The only thing that i need to do now is take the variable filePicker which has the file name that the user selected, and "automatically" (without user input) save it to a file name and path which are named setName setPath respectively.

Thanks!
Aug 7 '08 #3

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

Similar topics

1
13676
by: Andrew | last post by:
Dear Experts, I have a perl program that using Getopt:Std module, when I try to run the GetOpt program, the following error returned: Can’t locate Getopt.pm in @INC (@INC contains:...
0
8976
by: packrat | last post by:
I am attempting to build a Bugzilla server on OS X. All of this is new to me, working with the Perl, MySQL, and Bugzilla, so I have been banging my head often. Software error: When I run the...
2
2837
by: hikums | last post by:
how can I use a function inside a function, for example I want to select col1, col2 from table1 where locate(dayofweek(current date),col3) =dayofweek(current date) col3 is a field that contains a...
2
1120
by: Reggie | last post by:
HI and TIA! What I'm trying to do is have my user click a button which opens the find file dialogue box. Once they find it I want to place the full path into a variable so that I can use it as...
10
8261
by: Ed Bitzer | last post by:
One option of the messagebox object indicates it can be placed over a selected window rather than just appearing centered on the desktop. The function is "Overloads Public Shared Function...
7
10866
by: mwt | last post by:
Is there a function in python that does what "locate" does in a bash shell? I know I could do it by using os.popen('locate'), but I'm curious if there's a Python "native" way to go about it....
3
3064
by: Jason | last post by:
Hi, I built a vb.Net application that creates ICS calendar files dynamically and then sends them to the client browser as a downloadable file. Works perfectly except in the following situation....
6
2550
by: =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?= | last post by:
Hi, I need to replace double quotes inside the text from the database with " to correctly display my text. I was trying to use Regex to perform such a task: Regex.Replace(text, "", """) to...
0
1249
by: CtrlAltDel2008 | last post by:
Hello everyone, i hope you can help me with this query. The code below all works fine, referring to the SUBSTRING part, at the moment it just displays all the text from the "http" part until the end...
2
1075
by: bienwell | last post by:
Hi, I have a web page in ASP.NET which has a FILE object and a browse button. Users can click the browse button to locate the files they want to upload into the web server. Some users save the...
0
7124
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6884
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7375
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5460
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4904
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.