davewatson86
New Member
- Joined
- Jul 8, 2019
- Messages
- 30
hi all i have the below code throwing the mentioned error any help would be greatly appreciated
it works if i use this code but i need it to reference the sheet.name in case the name gets changed
VBA Code:
objRecordset.Open "Select * FROM [ & " & WS_STM.Name & " & $]", objConnection
it works if i use this code but i need it to reference the sheet.name in case the name gets changed
Code:
objRecordset.Open "Select * FROM [MYNETTD04$]", objConnectio