nagovind
Member
Dear All,
Below is the code that paste the data in the selected sheets from clipboard
It is doing the job perfectly
But this is not working if the copied data contains an object instead it is pasting only in fist selected sheet and not in all sheets
Please refer to the attached Worksheet-1 without object, Worksheet-2 with object, please advise the code
Public Sub PASTEDATASELSHEET()
'PASTE DATA IN SELECTED SHEETS
Application.DisplayAlerts = False
Dim wks As Worksheet
For Each wks In ThisWorkbook.Windows(1).SelectedSheets
Range("B2").Select
ActiveSheet.Paste
Next wks
Application.DisplayAlerts = True
End Sub
Below is the code that paste the data in the selected sheets from clipboard
It is doing the job perfectly
But this is not working if the copied data contains an object instead it is pasting only in fist selected sheet and not in all sheets
Please refer to the attached Worksheet-1 without object, Worksheet-2 with object, please advise the code
Public Sub PASTEDATASELSHEET()
'PASTE DATA IN SELECTED SHEETS
Application.DisplayAlerts = False
Dim wks As Worksheet
For Each wks In ThisWorkbook.Windows(1).SelectedSheets
Range("B2").Select
ActiveSheet.Paste
Next wks
Application.DisplayAlerts = True
End Sub