I have 2 Files that I would like to combine into one workbook- each having its own TAB AT BOTTOM. I would like to open a excel spreadsheet named "Comparison" and have a button "Macro" that when chosen it would ask for the first file to import and then you would select the Text File (Pason Data Run 1) and it would import it into its own tab with the excel sheet.
One of the problems I have when importing the text file is 2 of the columns I would like married together as one. ( Date & Time ) on the new worksheet and the other data in there own respective columns
I would like the date and time to read like ( ex: "8/12/14 06:01" )
I have included an excel sheet showing (Pason data run 1) after I imported it manually - notice that column (a,b,c) are highlighted Coulumn 'A' would not format as date so I had to create column 'B' and manually enter in the dates then in Column 'D' I combine column (C & B) to make my date and time format.
then you could run another macro for the Excel sheet (well Guide Run 1) to import into its own tab with in the new workbook.
I use both Files (Pason Data run 1 & Well guide Run 1) to run a correlation log and I need the date and times the same for that to happen.
This is some code I have partially working
Once that imports I go into the first text file that got imported and I have to combine 2 of the cells to have the date & time together. I used this code to start but I do not know how to get the format to carry all the way down the sheet.Please Login or Register to view this content.
It would be great if I could add this somehow to the first original text file that is imported and have it do this seamlessly.Please Login or Register to view this content.
Also How can I get the Macro to Paste the 2 files into the existing open workbook and not start a new one
Bookmarks