Thread
:
Using a string to reference an address
View Single Post
#
5
Posted to microsoft.public.excel.programming
RB Smissaert
external usenet poster
Posts: 2,452
Using a string to reference an address
Not sure why you need to put the found range into a string variable.
Can't you work directly with the range object like:
rngCodeFound.Copy
RBS
"Don Guillett" wrote in message
...
post all of your code pertaining to this. Maybe?
strCell.value ="A"& right( rngCodeFound,2)
--
Don Guillett
SalesAid Software
"anna" wrote in message
...
I want to use my strCell to reference an address, such as "A1" - how would
I
copy this cell? strCell.Copy does not work - I'm assuming it is because
I am
using a string and excel can't read my mind :)
If rngCodeFound Is Nothing Then
MsgBox "No FTO"
'Code is found
Else
strCell = rngCodeFound.Address
strCell = Right(strCell, 2)
strCell = ("A" + strCell)
' copy the cell that strCell variable references
' paste the copied cell to a new wks
End If
Reply With Quote
RB Smissaert
View Public Profile
Find all posts by RB Smissaert