我正在尝试制作一个将佣金计算表复制到我的牙科佣金报告中的宏。问题是我在目的地有一个固定名称“June Dental Commissions v5.xlsm”。有没有办法可以用我在宏中定义为当前工作簿的变量替换“June Dental Commissions v5.xlsm”?
Workbooks.Open Filename:= _
"X:\Customer Service\Dental Reports\Commission Report Calculation\Commission Calculation Tables.xlsx"
Sheets(Array("Entire Commission Table", "Zip & Terr List May 2013", _
"Abbreviation Finder")).Select
Sheets("Zip & Terr List May 2013").Activate
Sheets(Array("Entire Commission Table", "Zip & Terr List May 2013", _
"Abbreviation Finder")).Copy Before:=Workbooks( _
"June Dental Commissions v5.xlsm").Sheets(4)