![]() |
#2
|
|||
|
|||
![]()
try this and move Next term down below it
Code:
'******************************************************************* 'Code from here down to next line of asterisks For Each cell In wsSource.Range("B2:B" & lastRow) If cell.Value = "" Then Exit For Else If cell.Offset(, 2) = wsDest.Name Then Sheets(cell.Value).UsedRange.Copy wsDest.Range("A" & wsDest.UsedRange.Rows.Count + 2).PasteSpecial Paste:=xlPasteValues End If End If Next cell 'Code from here up to next line of asterisks '******************************************************************* |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Code to copy data from two sheet ,paste into corresponding sheet through cmdbutton | jackfruit88 | Excel Programming | 1 | 07-08-2022 09:27 PM |
![]() |
leops | PowerPoint | 4 | 08-31-2017 06:47 AM |
![]() |
cloudforgiven | Excel Programming | 6 | 01-05-2017 07:30 PM |
VBA macro to copy range and paste in next blank row | tune2grow | Excel Programming | 0 | 09-03-2014 08:25 PM |
Word - Calculate and paste values from Excel sheet | Augf87 | Word | 1 | 07-06-2009 10:26 AM |