3
'Copy and Paste the format of table
With wb.Sheets("Sheet1").UsedRange
.Copy
End With
Set cell = ActiveSheet.Range("C" & Rows.Count).End(xlUp)
cell.Offset(3, 3).Activate
With wbTarget.Sheets(I).ActiveCell
.PasteSpecial
End With
3番目の段落で、エラーが表示されます。私はコピーした内容をアクティブセルに貼り付けたい。オブジェクトはこのプロパティをサポートしていません。vba
どうすればこの問題を解決できますか?ありがとう
あなたの '.Copy'と' .PasteSpecial'の間で 'Activate'を使用しています - あなたのコードを遅くするだけです。 –
' wbTarget.Sheets(I).ActiveCell'を 'ActiveCell' – user3598756