Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default need to allow user to input file name to import data

Hi

Need some help on how to prompt the user for the input file (a CSV
file) & the macro will copy all the data in the input file into
another excel file summary & on worksheet named raw.

The input file is a CSV file with only 1 worksheet. I do not need to
open this file.

The input file is in the same folder as the summary file.

any ideas or suggestions are welcome

Thank you

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default need to allow user to input file name to import data


To get the filename from the user, use:
Application.GetOpenFilename

How can you copy the data if you do not intend to open the file ?

You can query the file instead:
DataImport External DataNew Database Query

You can record a macro of whichever method you choose to get the basis of
the required code.

NickHK

"kiwis" wrote in message
oups.com...
Hi

Need some help on how to prompt the user for the input file (a CSV
file) & the macro will copy all the data in the input file into
another excel file summary & on worksheet named raw.

The input file is a CSV file with only 1 worksheet. I do not need to
open this file.

The input file is in the same folder as the summary file.

any ideas or suggestions are welcome

Thank you



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
User input for import data function PsyberFox Excel Discussion (Misc queries) 0 March 26th 09 07:00 AM
macro to save as a data input by user file name from a designated Brian Excel Discussion (Misc queries) 2 November 20th 07 04:00 AM
Opening a file with User Input [email protected] Excel Discussion (Misc queries) 3 March 28th 07 03:00 AM
How to input file name in user form Boris Pelakh Excel Programming 1 November 7th 04 07:56 PM
User Input File Name kem Excel Programming 2 July 14th 03 10:23 PM


All times are GMT +1. The time now is 07:59 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"