DougStroud
Well-known Member
- Joined
- Aug 16, 2005
- Messages
- 2,976
- Office Version
- 365
- Platform
- MacOS
Working on line of code that will evaluate for a value and make changes w/ code.
Loop through the Range F4:F.
If in the range of F4:F the value "Hat" or "Shoe" is present, Then
offset to column "M" and test if the corresponding value is numeric, if it is and if it is a decimal value, convert to a fractional value.
Example:
F887 = "Hat"
M887 = "7.25"
Convert M887 to "7 1/4" (without quotes)
Here is where I am;
Thanks,
Doug
Loop through the Range F4:F.
If in the range of F4:F the value "Hat" or "Shoe" is present, Then
offset to column "M" and test if the corresponding value is numeric, if it is and if it is a decimal value, convert to a fractional value.
Example:
F887 = "Hat"
M887 = "7.25"
Convert M887 to "7 1/4" (without quotes)
Here is where I am;
Code:
For Each c In Range("F4:F" & LRow)
if c.Value="Hat" & c.offset(isnumeric(0,7)) and if c.value/1 <>1 then
Thanks,
Doug