Steffi,
That is not working, here is the current code
Sub CopyQueryOutput2()
Dim ranDataStartCell As Range
Dim ranData As Range
Dim ranshowAddress As Range
Dim ranQrySyn As Range
Dim ranPerfInfoStartCell As Range
Dim ranPerfInfo As Range
Set ranDataStartCell = Worksheets("SampleQueryOutput").Range("A5")
ranshowAddress = Rows("1:1").Find(What:="show", After:=[A1],
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Address
MsgBox ranshowAddress
End Sub
Stefi said:
showaddr = Rows("1:1").Find(What:="show", After:=[A1],
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Address
Regards,
Stefi
„thomas donino†ezt Ãrta:
I am trying to find the cell where the word "show" is in row 1. I tried
using
cells.find but that keeps returning show instead of the cell reference