I've always had issues with 'Range', something about it has always frustrated and confused me, so for this particular bit of code I'm using "Cells" which makes complete and total sense to me, heh. Anyway...
In Excel 365 I'm running down a series of rows. I check in Column 8 and if there's a double quote → " then I want to add a formula to Column 9 that refers to Column 8. I'm not certain how to do this. The formula is a custom function to convert Feet and Inches to decimal feet.
So what goes after "=StringToFt(" ?
Thanks!!
Matt
In Excel 365 I'm running down a series of rows. I check in Column 8 and if there's a double quote → " then I want to add a formula to Column 9 that refers to Column 8. I'm not certain how to do this. The formula is a custom function to convert Feet and Inches to decimal feet.
Code:
'Somewhere at the top of the code I have this:
[indent]dq = Chr(34) 'double quote as a variable[/indent]
[indent]iLength = 9 'just so I can refer to the column easier[/indent]
[indent]iQty = 8 'just so I can refer to the column easier[/indent]
'Then later on...
If InStr(1, Cells(iRow, iQty), dq) Then
'Add the calc to column 9
Cells(iRow, iLength).Formula = "=StringToFt(" &
End If
So what goes after "=StringToFt(" ?
Thanks!!
Matt