titushanke
New Member
- Joined
- Feb 13, 2009
- Messages
- 6
Hi everyone,
I have been trying to find information on this but haven't succeeded in all parts. Here is what I want to do in Excel (2003 compatible VBA).
I have an Excel workbook with 2 worksheets: SEG and IMPORT
SEG: contains formulas and VLOOKUPs to the Import sheet.
IMPORT: contains a text file (comma separated), and is not modified in any way from when it is opened.
I would like a macro to open a dialog window (asking me for the text file), then open the text file and copy it's contents into the IMPORT worksheet of the workbook.
Some issues:
Does anybody have an idea how to achieve this or could lend me a hand?
Thanks in advance...
Best regards,
Titus
I have been trying to find information on this but haven't succeeded in all parts. Here is what I want to do in Excel (2003 compatible VBA).
I have an Excel workbook with 2 worksheets: SEG and IMPORT
SEG: contains formulas and VLOOKUPs to the Import sheet.
IMPORT: contains a text file (comma separated), and is not modified in any way from when it is opened.
I would like a macro to open a dialog window (asking me for the text file), then open the text file and copy it's contents into the IMPORT worksheet of the workbook.
Some issues:
- the master Excel Workbook can have different names and be saved in different locations.
- The text file to be imported can also have different names (hence the dialog)
Does anybody have an idea how to achieve this or could lend me a hand?
Thanks in advance...
Best regards,
Titus