![]() |
Recognizing signs
Hi,
I have a lots of cells with different values in them. Mostly it is just numbers, but sometimes I have <0.30 for example. I am writing a macro in VB, and I want the cells where the value starts with < to change colour. My problem is that I cant figure out how to write the program so it can choose cells where the value starts with <. How should I do it?? |
Recognizing signs
Hi,
This can be achieved easily using conditional formatting. Thanks, Ksenija wrote: Hi, I have a lots of cells with different values in them. Mostly it is just numbers, but sometimes I have <0.30 for example. I am writing a macro in VB, and I want the cells where the value starts with < to change colour. My problem is that I cant figure out how to write the program so it can choose cells where the value starts with <. How should I do it?? -- Message posted via http://www.officekb.com |
Recognizing signs
Either
if left(Range("A1"),1) = "<" then or Mystring = "<ABC" if Left(MyString,1) = "<" then "Ksenija" wrote: Hi, I have a lots of cells with different values in them. Mostly it is just numbers, but sometimes I have <0.30 for example. I am writing a macro in VB, and I want the cells where the value starts with < to change colour. My problem is that I cant figure out how to write the program so it can choose cells where the value starts with <. How should I do it?? |
All times are GMT +1. The time now is 08:04 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com