Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Find Method 1

Status
Not open for further replies.

bajo71

Programmer
Aug 6, 2007
135
US
Hello,

Using the following code, I am attempting to insert a row where the criteria in find method is met. However, it only inserts a cell. Any suggestions?

Many thanks.......

With Sheets("Report")
.Find("Data!" & tmpAddress).Insert shift:=xlDown
End With
 
Hi,
Code:
        With Sheets("Report")
           .Find("Data!" & tmpAddress)[b].entirerow[/b].Insert shift:=xlDown
        End With


Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I tried .Find("Data!" & tmpAddress).entirerow.Insert shift:=xlDown and received the 'Object does not support method or property error'
 
Apologies, I must've deleted the Cells object. With this:

With Sheets("Report").Cells
.Find("Data!" & tmpAddress).EntireRow.Insert shift:=xlDown
End With

EntireRow.Insert works perfectly

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top