zensathish
New Member
- Joined
- May 28, 2019
- Messages
- 6
Hi,
Im opening txt files (contract) from a workbook (MC9.xlsm) and moving opened sheet (contract) to the workbook (MC9.xlsm)
Here the workbook name ("MC9.xlsm") is hardcorded. how can i make it dynamic using getbook command or is there any other alternative way.
Im opening txt files (contract) from a workbook (MC9.xlsm) and moving opened sheet (contract) to the workbook (MC9.xlsm)
Code:
Windows("CONTRACT").Activate
Sheets("CONTRACT").Select
Sheets("CONTRACT").Move After:=Workbooks("MC9.xlsm").Sheets(1)
Here the workbook name ("MC9.xlsm") is hardcorded. how can i make it dynamic using getbook command or is there any other alternative way.