Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I convert this code to say
if value in column E = "CO" then this code Right now it detects CRJ, ER3 and others in Column J and adds lette E to everything in Column 3. I would like some additional control on the code. Help appreciated. Dim mycounter As Double Dim c As Range Dim d As Range mycounter = 1 Do While mycounter < 35001 Set c = Range("J" & mycounter) Select Case c.Text Case Is = "CRJ", "EM2", "ER3", "ER4", "ERD", "ERJ" Set d = Range("E" & mycounter) d.Value = d.Value & IIf(Right(d.Text, 1) < "E", "E", "") End Select mycounter = mycounter + 1 Loop Thanks. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
date flexibility | Excel Worksheet Functions | |||
Can you build a formula in one cell with flexibility | Excel Discussion (Misc queries) | |||
Adjusting Macro | Excel Discussion (Misc queries) | |||
Adjusting Referances | Excel Worksheet Functions | |||
Add flexibility to Criteria of DFunctions | Excel Worksheet Functions |