C
clayton
NOOBIE here...
Here's what Ive got.
I am trying to create a "Delete Vendor" button
I know there is a much better way to do this..
On one sheet is the linked cell of a combobox.
I am selecting that cell, copying and switching to the data sheet.
There I want to find the copied cell's value, select that complete ro
and delete it. (Only the content, not the row itself because I wil
have a sort run afterward and it is an array so I want to keep th
size.)
My problem is that "Rows(ActiveCell.Row).Select" is executing befor
the find dialog box has time to appear effectivly defeating the whol
process.
Sub Macro5()
Sheets("master").Select
Range("C14:F14").Select
ActiveCell.Copy
Sheets("Data").Select
Range("A1").Select
SendKeys ("^f")
SendKeys ("^v")
SendKeys "{ENTER}"
SendKeys "{ESC}"
Rows(ActiveCell.Row).Select
ActiveCell.EntireRow.Delete
Sheets("master").Select
SendKeys "{ESC}"
End Su
Here's what Ive got.
I am trying to create a "Delete Vendor" button
I know there is a much better way to do this..
On one sheet is the linked cell of a combobox.
I am selecting that cell, copying and switching to the data sheet.
There I want to find the copied cell's value, select that complete ro
and delete it. (Only the content, not the row itself because I wil
have a sort run afterward and it is an array so I want to keep th
size.)
My problem is that "Rows(ActiveCell.Row).Select" is executing befor
the find dialog box has time to appear effectivly defeating the whol
process.
Sub Macro5()
Sheets("master").Select
Range("C14:F14").Select
ActiveCell.Copy
Sheets("Data").Select
Range("A1").Select
SendKeys ("^f")
SendKeys ("^v")
SendKeys "{ENTER}"
SendKeys "{ESC}"
Rows(ActiveCell.Row).Select
ActiveCell.EntireRow.Delete
Sheets("master").Select
SendKeys "{ESC}"
End Su