sgmpatnaik
Active Member
Hello Ninja's
Good Evening
i need some help from you that is i want to copy data to multiple sheets except one column, here i got the code while on searching. now i think to stop copy the Column C to the Multiple sheets but the data is copy and paste in multiple sheets base with the Column C
[pre]
[/pre]
really helpful for me
Thanks
SP
Good Evening
i need some help from you that is i want to copy data to multiple sheets except one column, here i got the code while on searching. now i think to stop copy the Column C to the Multiple sheets but the data is copy and paste in multiple sheets base with the Column C
[pre]
Code:
Sub copyPasteData()
Dim strSourceSheet As String
Dim strDestinationSheet As String
Dim lastRow As Long
strSourceSheet = "Data entry"
Sheets(strSourceSheet).Visible = True
Sheets(strSourceSheet).Select
Range("C2").Select
Do While ActiveCell.Value <> ""
strDestinationSheet = ActiveCell.Value
ActiveCell.Offset(0, -2).Resize(1, ActiveCell.CurrentRegion.Columns.Count).Select
Selection.Copy
Sheets(strDestinationSheet).Visible = True
Sheets(strDestinationSheet).Select
lastRow = LastRowInOneColumn("A")
Cells(lastRow + 1, 1).Select
Selection.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Sheets(strSourceSheet).Select
ActiveCell.Offset(0, 2).Select
ActiveCell.Offset(1, 0).Select
Loop
End Sub
really helpful for me
Thanks
SP