Thread: range to string
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Jean-Yves[_2_] Jean-Yves[_2_] is offline
external usenet poster
 
Posts: 253
Default range to string

Hi,

destrange is a range object
destrange.address = the property will return a string that is the address
It just depends on how you define your function argument ie function(rng as
string or rng as range)

Regards
Jean-Yves

"usadream" wrote in
message ...

Hi all,

i need to pass a string (e.g. "D10:D150") that defines a range as
argument to a function.
My problem: I have this range defined as range object:


Code:
--------------------
Set destrange = activeSheet.Range(Cells(myDestinationStartRow,
myDestinationCol), Cells(myDestinationEndRow, myDestinationCol))
--------------------


How can i convert this range to a string defined above? is this
possible?

regards, thomas


--
usadream
------------------------------------------------------------------------
usadream's Profile:
http://www.excelforum.com/member.php...o&userid=32703
View this thread: http://www.excelforum.com/showthread...hreadid=530028