Value from one sheet paste under same value on other sheet.
Hi Howard,
Am Sun, 23 Jun 2013 02:02:06 -0700 (PDT) schrieb Howard:
Trying to take the value in J26 sheet1 and paste it under the same value on sheet "Specified Sheet Name" which will be in the named range SSname C6:Z6.
The J26 value will look something like this SS-Name 10.
I get no errors on this code and no results either...?
try:
Sub SSName_Match_Offset()
Dim sNme As String
Dim SSName As Range
Dim c As Range
With Sheets("Specified Sheet Name")
sNme = Sheets("Sheet1").Range("J26").Value
For Each c In Range("SSName")
If c.Value = sNme Then
c.Offset(1, 0) = sNme
Exit For
End If
Next
End With
End Sub
If you get no result, in J26 and in SSName the spelling is different
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
|