Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Nader Farhadi
 
Posts: n/a
Default pop-up files name menu

Hello,
I need help with setting up a macro that reads in different file names.
Each file contains 4 columns of data that I would like to be imported in the
master list.
I like to know how can I setup a pop-up window that sakes me for the file
names all at once so I could type the file names and master list be filled
with data.

Any help, appreciated

Thanks


  #2   Report Post  
tina
 
Posts: n/a
Default

Hi
I think you mean a inputbox you will need to do 1 file at time using
something like this
Sub Macrofilecopy()

MYNAME1 = InputBox("ENTER FILE NAME 1")
Workbooks.Open Filename:=MYNAME1
Range("a1:d1000").Copy
Windows("MASTER.xls").Activate
Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
selection.end(xldown).offset(1,0).select
MYNAME2 = InputBox("ENTER FILE NAME 2")
Workbooks.Open Filename:=MYNAME2
Range("a1:d1000").Copy
Windows("MASTER.xls").Activate
ActiveSheet.Paste
Application.CutCopyMode = False
end sub
this will obviously need changing to meet your exact requirements but hope
it is a start
Tina
"Nader Farhadi" wrote:

Hello,
I need help with setting up a macro that reads in different file names.
Each file contains 4 columns of data that I would like to be imported in the
master list.
I like to know how can I setup a pop-up window that sakes me for the file
names all at once so I could type the file names and master list be filled
with data.

Any help, appreciated

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
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
multiple text files URGENT tasha Excel Discussion (Misc queries) 1 December 19th 04 05:44 PM
importing multiple text files URGENT!!! HELP tasha Excel Worksheet Functions 0 December 19th 04 04:26 PM
importing multiple text files??? tashayu Excel Discussion (Misc queries) 0 December 19th 04 02:43 PM
Why does Excel saves all my files as temporary files? Arija Excel Discussion (Misc queries) 2 December 7th 04 11:38 PM


All times are GMT +1. The time now is 03:42 AM.

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"