Hello,
I am new to the forum and Macros. I recently got help with a pretty indepth Macro process. The person that helped with this used the TXT file based off steps I had and created it. It works perfect from start to finish but only on that file. The file name will change every week. I fixed the first part of the Macro to be universal for any file I run it on. However there is another part within the Macro that it references by file name. At this point I do not know where or what to put in the place so it will run with any file name. The issue is that I have one Sheet on the Workbook that has a file name, I then copy Columns B-F.....create a new tab (Sheet1) and Paste Special with Values into Columns A-E. So I need to know how to reference the original First sheet WITHOUT using the file name (because this will change every week) to copy and then paste into the new sheet that will ALWAYS be referred to as Sheet1 which is ok. Like I said....this whole Macro works flawless but I need to replace the part that has the file name with something generic to just reference the original first sheet I need to copy from. Here is my code...See this line in the code....here is the issue "Sheets("Insert WK 14 Batch # 4369").Columns("B:F").Copy 'I know, still hard-coded."
Please Login or Register to view this content.
Bookmarks