Hi there
I'm puzzled with the value that I got from my active cell.
When my cell contains "2800" (without the double quotes), and my coding is
the result will be 2800.
But when my cell contains "2800-7200" (without the double quotes), and my coding is still
the result will be "2800-7200". (with double quotes)
I've separated the "2800-7200" using
In this case, my freq1 is "2800" and freq2 is "7200",
I need to use these two frequency to look through a list of frequencies.
For example,
This will result in 2800 = "2800", and it is seen as not fulfilling the condition.
Where does the double quotes "" come out from?
CJ
I'm puzzled with the value that I got from my active cell.
When my cell contains "2800" (without the double quotes), and my coding is
Code:
freq = ActiveCell.value
But when my cell contains "2800-7200" (without the double quotes), and my coding is still
Code:
freq = ActiveCell.value
I've separated the "2800-7200" using
Code:
intPos = InStr(1, freq, "-", vbTextCompare)
freq1 = Mid(freq, 1, intPos - 1)
freq2 = Mid(freq, intPos + 1)
I need to use these two frequency to look through a list of frequencies.
For example,
Code:
If ActiveCell.value = freq1 Then
Where does the double quotes "" come out from?
CJ