我试图将当前工作簿分配给工作簿对象:
Dim wb As Workbook, ws As Worksheet, rng As Range
wb = ThisWorkbook
在这种情况下,代码正在其中运行并且是当前活动的工作簿。但是我收到以下错误,我哪里出错了:
91 - Object variable or With block variable not set
我试图将当前工作簿分配给工作簿对象:
Dim wb As Workbook, ws As Worksheet, rng As Range
wb = ThisWorkbook
在这种情况下,代码正在其中运行并且是当前活动的工作簿。但是我收到以下错误,我哪里出错了:
91 - Object variable or With block variable not set