excel vba with access won't close on this code

后端 未结 1 524
无人及你
无人及你 2021-01-26 12:14

Hi I justed posted a few minutes ago and somone asnwerd my question about excel not closing. I am using access to open a sheet and add a table. Excel won\'t close which causes

相关标签:
1条回答
  • 2021-01-26 12:44

    Replace Range("$A$1:$F$312") with ws.Range("$A$1:$F$312") or else you will still have a reference to an Excel Application object that won't be destroyed until you exit MSAccess.

    0 讨论(0)
提交回复
热议问题