I have a workbook with various sheets named Alert* (each Alert sheet name have a different date on it) and client sheet. The time that I run code to Copy and Paste the information in 2 sheets named client I am facing an issue.
The Copying and Paste are working fine. However, it deletes the information in Range ("K16", "C1" & "C2") in all my sheets named Alert*. It is not a big problem, because I still can copy this information once again from the client sheet.
I am trying many ways to copy and paste code, and I can't make it work.
Dim sht As Worksheet
Dim sw As Worksheet: Set sw = Sheets("Client*")
For Each sht In Worksheets
If sht.Name Like "Alert*" Then
sht.Range("K16").Value = sw.range("J3")
sht.Range("C1").Value = sw.range("C1")
sht.Range("C2").Value = sw.range("C2")
End If
Next ws
I try Dim sht As Worksheet set sht = worksheets("Alert*)
ActiveSheet.Range("J3").Copy sht.Range("K16") ActiveSheet.Range("C1:C2").Copy sht.Range("C1:C2")
But it is not working.
Maybe it would be possible to use a loop to check all the sheets named Alert* and paste the information from Client sheet to the correct range.
ws.Range("K16").Formula = "='Client Review'!J3"? - Samuel Everson"Client Review"is deleted or manipulated - have I missed something? Also does this MS document about the REF error help? - Samuel Everson