Hi ,
I have a folder C:\DataFiles, in this folder I have around 300 files, in each xls file there are two tabs Dev and Test.
I am trying to add a new column in both the sheets.
In Dev worksheet I have to create a filename in column F and in Test I have to create filename in column N.
Right now I am doing it manually, what I thought was I will use theActiveWorkbook.Name function to get the filename and fill it , I have created the below macro.
Please tell me how can I
a) add the filename to the columns as per the data present.(please see the atatchment), right now this macro is adding filename to all the columns in the xls.
b)how to call this function in both the sheets so that the filename will be inserted.
Thanks,
Swathi Das
Bookmarks