How do I go around doing this?
everytime when i import a new excel sheet using an vba command
I would like it to extract the files name, sheet name and todays date when importing?
and have it above the data while it is importing ...
I am unable to do it since the data is dynamic and i dont know how to place it below the latest data generated ...
Before...
After...
File name formula:
Sheet name formula :
Date of Import:
everytime when i import a new excel sheet using an vba command
I would like it to extract the files name, sheet name and todays date when importing?
and have it above the data while it is importing ...
I am unable to do it since the data is dynamic and i dont know how to place it below the latest data generated ...
Before...
After...
File name formula:
Code:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",
CELL("filename",A6))-FIND("[",CELL("filename",A6))-1)
Sheet name formula :
Code:
=MID(CELL("filename",M4),FIND("]",CELL("filename",M4))+1,99)
Date of Import:
Code:
=NOW()