G
Guest
I would like to create a copy of an Access Table using VBA that is run in
Excel. In order to do this, I have tried the following:
Set db = OpenDatabase(ThisWorkbook.Path & "\Deterministic_VSM_v3.mdb")
db.DoCmd.CopyObject , Name, "acTable", ExistingName
Set db=Nothing
Whenever I execute this code I receive an error message that says: "Compile
Error: Method or Data Member not found." So, it looks like DoCmd cannot be
used in Excel's VBA. Does anybody know of a different way of doing this or if
it is even possible to copy Access tables from VBA that is located in Excel?
Excel. In order to do this, I have tried the following:
Set db = OpenDatabase(ThisWorkbook.Path & "\Deterministic_VSM_v3.mdb")
db.DoCmd.CopyObject , Name, "acTable", ExistingName
Set db=Nothing
Whenever I execute this code I receive an error message that says: "Compile
Error: Method or Data Member not found." So, it looks like DoCmd cannot be
used in Excel's VBA. Does anybody know of a different way of doing this or if
it is even possible to copy Access tables from VBA that is located in Excel?