Seamus2626
asked on
ThisWorkbook.name
Hi, i have this formula in the VBA editor
.Range("U1").Formula = DateSerial(Mid(ThisWorkboo k.Name, 13, 4), Mid(ThisWorkbook.Name, 11, 2), Mid(ThisWorkbook.Name, 9, 2))
The code opens another file which im trying to read the date off, one of the problems, is that because the above formula is in the editor of my core spreadsheet, thats spreadsheet name its trying to read. So i need it to be amended so it can read the active workbooks name
Thanks
Seamus
.Range("U1").Formula = DateSerial(Mid(ThisWorkboo
The code opens another file which im trying to read the date off, one of the problems, is that because the above formula is in the editor of my core spreadsheet, thats spreadsheet name its trying to read. So i need it to be amended so it can read the active workbooks name
Thanks
Seamus
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent, thanks Jppinto!
Seamus
Seamus
Set wk = ActiveWorkbook