Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jan Jan is offline
external usenet poster
 
Posts: 159
Default Open unknown file name

Quite awhile ago I located the perfect solution on this site by using a
button (I believe) to first choose a file (not knowing the file name) and
then the file would open using a macro which parsed the file as needed.
Unfortunately my hard drive recently took a vacation and never returned. I
have search the site again hoping to find something similar to recreate this
solution but with no success.
The problem: I receive data files often which I need to open in Excel and
automatically parse to the required positions. I would click this button,
choose the file I wished to open and the macro would do the rest. I have
recreated the macro and am looking for the rest of the puzzle.
Thank you for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Open unknown file name

Jan,
You mean Application.GetOpenFilename ?

NickHK

"Jan" wrote in message
...
Quite awhile ago I located the perfect solution on this site by using a
button (I believe) to first choose a file (not knowing the file name) and
then the file would open using a macro which parsed the file as needed.
Unfortunately my hard drive recently took a vacation and never returned. I
have search the site again hoping to find something similar to recreate

this
solution but with no success.
The problem: I receive data files often which I need to open in Excel and
automatically parse to the required positions. I would click this button,
choose the file I wished to open and the macro would do the rest. I have
recreated the macro and am looking for the rest of the puzzle.
Thank you for your help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
Jan Jan is offline
external usenet poster
 
Posts: 159
Default Open unknown file name

I humbly admit I look for and apply solutions to make my job more efficient.
I understand enough to be dangerous (thankfully only for myself). After I
found and implemented the solution a few years ago, I honestly don't remember
what function was used as I haven't had to do much 'personal problem solving'
in Excel since. I know there are two parts. One was changing a bit of code in
the macro itself, similar - but not exactly - to the post of 2/7/06 Importing
files, and the second part was creating a new Excel file with a lone radio
button which when clicked, would call the macro and open the file of my
choosing into a new workbook. I really do appreciate all the Community Groups
as they have pointed me in the right direction many times.
Thank you for your patience.

"NickHK" wrote:

Jan,
You mean Application.GetOpenFilename ?

NickHK

"Jan" wrote in message
...
Quite awhile ago I located the perfect solution on this site by using a
button (I believe) to first choose a file (not knowing the file name) and
then the file would open using a macro which parsed the file as needed.
Unfortunately my hard drive recently took a vacation and never returned. I
have search the site again hoping to find something similar to recreate

this
solution but with no success.
The problem: I receive data files often which I need to open in Excel and
automatically parse to the required positions. I would click this button,
choose the file I wished to open and the macro would do the rest. I have
recreated the macro and am looking for the rest of the puzzle.
Thank you for your help.




  #4   Report Post  
Posted to microsoft.public.excel.programming
Jan Jan is offline
external usenet poster
 
Posts: 159
Default Open unknown file name

I have recreated the Excel file radio button which points to the macro
successfully. I'm now working on getting the macro to allow me to select a
file. I will work with the Application.GetOpenFilename function, as that
seems to be what I need to add at the beginning of my macro code.
Thank you again for your help.

"Jan" wrote:

I humbly admit I look for and apply solutions to make my job more efficient.
I understand enough to be dangerous (thankfully only for myself). After I
found and implemented the solution a few years ago, I honestly don't remember
what function was used as I haven't had to do much 'personal problem solving'
in Excel since. I know there are two parts. One was changing a bit of code in
the macro itself, similar - but not exactly - to the post of 2/7/06 Importing
files, and the second part was creating a new Excel file with a lone radio
button which when clicked, would call the macro and open the file of my
choosing into a new workbook. I really do appreciate all the Community Groups
as they have pointed me in the right direction many times.
Thank you for your patience.

"NickHK" wrote:

Jan,
You mean Application.GetOpenFilename ?

NickHK

"Jan" wrote in message
...
Quite awhile ago I located the perfect solution on this site by using a
button (I believe) to first choose a file (not knowing the file name) and
then the file would open using a macro which parsed the file as needed.
Unfortunately my hard drive recently took a vacation and never returned. I
have search the site again hoping to find something similar to recreate

this
solution but with no success.
The problem: I receive data files often which I need to open in Excel and
automatically parse to the required positions. I would click this button,
choose the file I wished to open and the macro would do the rest. I have
recreated the macro and am looking for the rest of the puzzle.
Thank you for your help.




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Open unknown file name

Jan,
You are aware that you can record a macro to obtain code for most actions.
Whilst not great code, it gives you concept of what will be required.
Add a .GetOpenFile and use that filename in the Workbooks.Open.

Post back with your basic code if you still have problems.

NickHK

"Jan" wrote in message
...
I have recreated the Excel file radio button which points to the macro
successfully. I'm now working on getting the macro to allow me to select a
file. I will work with the Application.GetOpenFilename function, as that
seems to be what I need to add at the beginning of my macro code.
Thank you again for your help.

"Jan" wrote:

I humbly admit I look for and apply solutions to make my job more

efficient.
I understand enough to be dangerous (thankfully only for myself). After

I
found and implemented the solution a few years ago, I honestly don't

remember
what function was used as I haven't had to do much 'personal problem

solving'
in Excel since. I know there are two parts. One was changing a bit of

code in
the macro itself, similar - but not exactly - to the post of 2/7/06

Importing
files, and the second part was creating a new Excel file with a lone

radio
button which when clicked, would call the macro and open the file of my
choosing into a new workbook. I really do appreciate all the Community

Groups
as they have pointed me in the right direction many times.
Thank you for your patience.

"NickHK" wrote:

Jan,
You mean Application.GetOpenFilename ?

NickHK

"Jan" wrote in message
...
Quite awhile ago I located the perfect solution on this site by

using a
button (I believe) to first choose a file (not knowing the file

name) and
then the file would open using a macro which parsed the file as

needed.
Unfortunately my hard drive recently took a vacation and never

returned. I
have search the site again hoping to find something similar to

recreate
this
solution but with no success.
The problem: I receive data files often which I need to open in

Excel and
automatically parse to the required positions. I would click this

button,
choose the file I wished to open and the macro would do the rest. I

have
recreated the macro and am looking for the rest of the puzzle.
Thank you for your help.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open file with unknown extra characters at end of filename achidsey Excel Programming 1 October 19th 05 09:21 PM
Paste sheet to new file with unknown file name - VBA [email protected] Excel Programming 2 October 5th 05 05:41 PM
Linked file in same folder but unknown path Christy Excel Programming 6 October 4th 05 06:30 PM
How to Activate unknown file name Ashley[_3_] Excel Programming 1 June 4th 04 06:41 PM
Checking if workbook open (where path is unknown) [email protected] Excel Programming 0 September 4th 03 11:13 PM


All times are GMT +1. The time now is 08:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"