Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi ,
can anybody explain how I can use the loop below for "find" property in the following code.I don't know why it can not jump to next I when "find" property can not find the "/164" in the cells!!!????I know there are far easier codes to do the substitution but I have to use the "find".thanx Private Sub CommandButton4_Click() Dim VAR As Variant For I = 13 To 32 VAR = Application.WorksheetFunction.Find("/164", Cells(I, 2)) If VAR = 1 Then Cells(I, 2) = Application.WorksheetFunction.Substitute(Cells(I, 2), "/164", "") Else End If Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
problem in VB codes | Excel Discussion (Misc queries) | |||
Help with codes | Excel Discussion (Misc queries) | |||
Codes | Excel Discussion (Misc queries) | |||
VB Codes | Excel Discussion (Misc queries) | |||
Zip Codes | Excel Discussion (Misc queries) |