VBA For Excel AfterRefresh Event

后端 未结 3 1872
太阳男子
太阳男子 2021-01-14 08:19

I am using the following QueryTable Inquiry. After the .Refresh executes the VBA procedure ends. The inquiry works but I need to execute code after it complete

3条回答
  •  时光说笑
    2021-01-14 08:35

    Please make sure your QueryTable_AfterRefresh sub is placed NOT in the module, but under Sheet / Workbook, the same way as here: https://stackoverflow.com/a/14646261/1953175 Moreover, you do not need to call event, remove .AfterRefresh (Success) from your code.

提交回复
热议问题