Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
All,
What is a good way to open a .txt file, select all (it's all text), copy.... then paste into an empty excel sheet; using VBA code? Here's the situation: I would like to run this sub when the workbook opens. The location and name of the .txt file are always the same. I just need to simply select all in txt file, copy, then regular paste into an excel sheet. However, i will need to code past the question pop-up in excel about the 'Data on the Clipboard is not the same size and shape...." . clicking ok to that pop-up gives me what i want. Then close the .txt file. Any help would be greatly appreciated. Thanks, Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why are the Copy and Paste preferences in Excel not as good as Wor | Excel Discussion (Misc queries) | |||
Excel Macro to open file, load & do charts, functional but not usable/not a good prog | Excel Programming | |||
copy multiple worksheets of a workbook, and paste onto a Word document ( either create new doc file or paste onto an existing file.) I need this done by VBA, Excel Macro | Excel Programming | |||
Open file, copy field and paste into an Excel doc! - Pl help .. | Excel Programming | |||
Open file, Copy a column and paste this into a new Excel doc - Pl | Excel Programming |