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!

selects only the cells that starts with a specific value 1

Status
Not open for further replies.

eon5

Technical User
Dec 31, 2007
47
ZA
Hi,

I have do until loops that is deleting cells that contains the code CUSF00110.

If sheet2.range("a"&x).value = "CUSF00110" then

It works perfectly but more codes starting with "CUS" is getting generated in the data base. Thus the do until loops must delete not only that specific code "CUSF00110" but all codes starting with "CUS", will be a safe bet.

any advice?
 
Code:
If Left(sheet2.range("a"&x).value,3) = "CUS" then
 




Hi,

Also...
Code:
If sheet2.cells(x, "A").value Like  "CUS*" then

[code]


Skip,
[sub]
[glasses]Just traded in my old subtlety...
[b]for a NUANCE![/b][tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top