I'm using this formula to generate an ID value
=IF($H5="","",ROW()-4&"APT"&H$2)
it returns, based on the cell's values, a code like 1APT1, 1APT2, 1APT3 etc... or 2APT1, 3APT2... blah, blah, blah...
I then Find and Load these codes in a vba userform TextBox.
The problem is that for some reason when i try to use this TextBox value to return it's Row or Column number to modify data it does not find it.
If i type the exact code manually into the cell it works but the formula generated code does not.
In the vba code i tried:
dim fname as String
dim fname as Range
fname = IDbox
but the Find routine doesn't read it as "plain text"
What am i doing wrong?
Thank You in advance for any help.
=IF($H5="","",ROW()-4&"APT"&H$2)
it returns, based on the cell's values, a code like 1APT1, 1APT2, 1APT3 etc... or 2APT1, 3APT2... blah, blah, blah...
I then Find and Load these codes in a vba userform TextBox.
The problem is that for some reason when i try to use this TextBox value to return it's Row or Column number to modify data it does not find it.
If i type the exact code manually into the cell it works but the formula generated code does not.
In the vba code i tried:
dim fname as String
dim fname as Range
fname = IDbox
but the Find routine doesn't read it as "plain text"
What am i doing wrong?
Thank You in advance for any help.