Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default write a macro like the /file copy combine named range in lotus 12

I wrote macros in Lotus and we are currently switching over to Excel but I
can't find the command that will allow the user to input the name of the file
to open and get the data from the file. I have it set up to open a file ,
copy a range , close the file and paste it in the current worksheet but it
works for a hard coded file. I need to be able to input the name of the file
to get the data from. Can anyone help me? You can reach me at tow emails
address. The lone attached to this name and Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default write a macro like the /file copy combine named range in lotus 12

Check out Application.GetOpenFilename in the Help

NickHK

"surelystumped" wrote in message
...
I wrote macros in Lotus and we are currently switching over to Excel but

I
can't find the command that will allow the user to input the name of the

file
to open and get the data from the file. I have it set up to open a file ,
copy a range , close the file and paste it in the current worksheet but it
works for a hard coded file. I need to be able to input the name of the

file
to get the data from. Can anyone help me? You can reach me at tow emails
address. The lone attached to this name and Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default write a macro like the /file copy combine named range in lotus 12

You might want a macro that the user can initiate with a keyboard control and
the macrow would display an input box that the user can enter a file name in,
or as an alternative the macro could display a checkbox with the file options
for the user to check. There are several options, look in the Help files for
InputBox Method and InputBox Function, also Create UserForm and then ListBox
and CheckBox. You can probably find what you need in one of these that will
make it easy on you and the user. When you decide what you want to try, if
you need assistance, re-post.

"surelystumped" wrote:

I wrote macros in Lotus and we are currently switching over to Excel but I
can't find the command that will allow the user to input the name of the file
to open and get the data from the file. I have it set up to open a file ,
copy a range , close the file and paste it in the current worksheet but it
works for a hard coded file. I need to be able to input the name of the file
to get the data from. Can anyone help me? You can reach me at tow emails
address. The lone attached to this name and Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default write a macro like the /file copy combine named range in lotus 12

Your advising against using Application.GetOpenFileName?

could you explain your reasoning?

--
Regards,
Tom Ogilvy


"JLGWhiz" wrote in message
...
You might want a macro that the user can initiate with a keyboard control
and
the macrow would display an input box that the user can enter a file name
in,
or as an alternative the macro could display a checkbox with the file
options
for the user to check. There are several options, look in the Help files
for
InputBox Method and InputBox Function, also Create UserForm and then
ListBox
and CheckBox. You can probably find what you need in one of these that
will
make it easy on you and the user. When you decide what you want to try,
if
you need assistance, re-post.

"surelystumped" wrote:

I wrote macros in Lotus and we are currently switching over to Excel but
I
can't find the command that will allow the user to input the name of the
file
to open and get the data from the file. I have it set up to open a file ,
copy a range , close the file and paste it in the current worksheet but
it
works for a hard coded file. I need to be able to input the name of the
file
to get the data from. Can anyone help me? You can reach me at tow emails
address. The lone attached to this name and Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default write a macro like the /file copy combine named range in lotus 12

haven't had a chance to try it yet will do in next few days thanks

"surelystumped" wrote:

I wrote macros in Lotus and we are currently switching over to Excel but I
can't find the command that will allow the user to input the name of the file
to open and get the data from the file. I have it set up to open a file ,
copy a range , close the file and paste it in the current worksheet but it
works for a hard coded file. I need to be able to input the name of the file
to get the data from. Can anyone help me? You can reach me at tow emails
address. The lone attached to this name and Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default write a macro like the /file copy combine named range in lotus 12

So far I am getting the results from opening the file and copying the range
into my active sheet. The only problem is all these windows opening and
shutting. I would like something less noticiable. I am still trying to make
the getopenfilename work...but so far not working

"surelystumped" wrote:

I wrote macros in Lotus and we are currently switching over to Excel but I
can't find the command that will allow the user to input the name of the file
to open and get the data from the file. I have it set up to open a file ,
copy a range , close the file and paste it in the current worksheet but it
works for a hard coded file. I need to be able to input the name of the file
to get the data from. Can anyone help me? You can reach me at tow emails
address. The lone attached to this name and Thanks.

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
Lotus Notes - Unable to Copy Paste Special in macro Joe Wildman[_2_] Excel Worksheet Functions 2 February 8th 09 09:43 PM
Saving a copy of excel file in macro but have it auto write pano Excel Worksheet Functions 4 March 27th 07 11:54 PM
Copy named range from file list to summary workbook [email protected] Excel Programming 5 June 5th 06 09:16 PM
Would like Macro example to write out a range of cells to a file Bryan Excel Programming 1 February 23rd 06 09:08 PM
Converting Lotus 123 macro to Excel - copy/move data to worksheet Bernice[_2_] Excel Programming 7 February 12th 04 03:47 PM


All times are GMT +1. The time now is 10:04 AM.

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

About Us

"It's about Microsoft Excel"