But it can be done within the code. Change the part of the code that pastes the source range as follows:
Code: Select all
' Get info about current destination
strDestination = wshList.Range("D" & lngIndex)
Set wshDestination = Worksheets(strDestination)
strDestination = wshList.Range("E" & lngIndex)
Set rngDestination = wshDestination.Range(strDestination).Offset(lngCount * lngRowCount, 0)
Set rngDestination = rngDestination.Resize(rngSource.Rows.Count, rngSource.Columns.Count)
' Copy
rngSource.Copy Destination:=rngDestination
rngSource.Copy
rngDestination.PasteSpecial Paste:=xlPasteColumnWidths
End If