michaelm702
asked on
excel macro needed
I have a column in a spreadsheet in which the cells will have value one of the following :
m = male,f = female
m = male^f = female
Note that there is space after and before equal to sign.
I need a macro which will check for all the cells in the column so that there is space after and before equal to sign. If a space is not there then that cell should be colured in red.
m = male,f = female
m = male^f = female
Note that there is space after and before equal to sign.
I need a macro which will check for all the cells in the column so that there is space after and before equal to sign. If a space is not there then that cell should be colured in red.
ASKER
Each Cell does not have only two equal to signs there must be atleast one and any number greater than one. We should also check that each cell in that column has an equal to present aso.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Dim v
Dim r As Integer
Const c = 1
For r = 1 To ActiveSheet.UsedRange.Cell
v = Split(ActiveSheet.UsedRang
If UBound(v) < 2 Then
ActiveSheet.UsedRange.Cell
End If
Next r