I would appreciate guidance on the following. I've tried to do it by recording a macro and then adding in Open F:\Data\M400.txt For Input As #1 (which I learned from a previous post), however I still can't get my coding to perform as needed.
I have an open workbook - F:\Files\SM\M400AD.xlsm. Sheet 1 (CSV_List) and sheet 2 (Summary) are permanent sheets; the remaining worksheets hold temporary data and are replaced every week or so.
M400AD\Summary is the active worksheet. Column A contains the names of the remaining worksheets. The names are obtained from a .txt file; the .txt file contains a list of about 400 names in column A. I want to copy that list of 400 names to another workbook. That workbook contains a worksheet that is set up to split the 400 names into 4 groups of 100.
So - stepwise - I want to:
M400AD\Summary - delete Range("A3:A105")
Open F:\Data\M400.txt
Select All
Copy
Close that file
Open F:\Files\SM\SM_Performance.xlsm
Make worksheet 'Lists' the active sheet
Paste the data to Range("A3")
Copy Range("C3:C105") (from worksheet 'Lists')
Close SM_Performance.xlsm and return to M400AD\Summary
Paste the data to Range("A3")
Many thanks in anticipation