LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Zak Zak is offline
external usenet poster
 
Posts: 144
Default macro probs

Thanks so much, there was a Ucase L in there which i was too blind to notice!



"John Bundy" wrote:

Works perfectly for me. Not that the way you wrote the code it is case
sensitive, so make sure you fix that or that the sheet matches your criteria.
ie Apollo = Apollo on sheet and not apollo.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"zaki" wrote:

Having problems with another macro, i dont understand how they randomly just
trip up. The below code is working absolutely fine and changes the desired
text to how i want it to, but for "Applabs" it changes everything in the
corresponding cell to Sub contractor (as it should) BUTbut misses the last
cell out! The last one stays the same. why?

Please help. Appreciate all your help.

Sub subcon()
Dim r As Range
Dim srng As Range
Set srng = Range("e1", Range("e" & Rows.Count). _
End(xlUp)).SpecialCells(xlCellTypeConstants, xlTextValues)
For Each r In srng
Select Case r.Value
Case "AMS Subcon", "Apollo", "Applabs", "Capula", "Temporary Staff"
r.Offset(0, 1).Value = "Sub - Contractor"
End Select
Next r
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
xl probs. [email protected] Excel Programming 1 December 30th 07 01:14 PM
array probs [email protected][_2_] Excel Programming 1 January 19th 06 10:35 PM
3D Graph Probs alex_marshall Charts and Charting in Excel 2 August 15th 05 01:46 AM
Formula probs Bob Phillips[_5_] Excel Programming 1 July 17th 03 08:54 PM
Formula Probs Mike Excel Programming 0 July 17th 03 06:25 PM


All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"