Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Retrieving Value

Greetings,
My worksheet uses Routing and I would like to pull the Routing Recepients
names off of the routing slip and put them somewhere on the worksheet to
everyone can see who the worksheet will be routed to. I have read the help
file on this, but I am a little confused. Below is what Help says. I would
just like code to retreive the routing recipients. I think my code should be
something like:
Names = ThisWorkbook.RoutingSlip.Recepients, but I am confused.

help please.....

Syntax
expression.Recipients(Index)
expression Required. An expression that returns a RoutingSlip object.
Index Optional Variant. The recipient. If this argument isnt specified,
the Recipients property returns (or can be set to) an array that contains all
recipients.
Remarks
The order of the recipient list defines the delivery order if the routing
delivery option is xlOneAfterAnother.
If a routing slip is in progress, only those recipients who havent already
received and routed the document are returned or set.




--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Retrieving Value

Jeff

I wouldn't use Names as it's a reserved word and you probably don't need a
variable anyway.

Dim i As Long

With ThisWorkbook.RoutingSlip.Recipients
For i = 1 to .Count
Sheet1.Cells(i,1).Value = .Item(i)
Next i
End With

Untested, but I think it will work.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Jeff wrote:
Greetings,
My worksheet uses Routing and I would like to pull the Routing
Recepients names off of the routing slip and put them somewhere on
the worksheet to everyone can see who the worksheet will be routed
to. I have read the help file on this, but I am a little confused.
Below is what Help says. I would just like code to retreive the
routing recipients. I think my code should be something like:
Names = ThisWorkbook.RoutingSlip.Recepients, but I am confused.

help please.....

Syntax
expression.Recipients(Index)
expression Required. An expression that returns a RoutingSlip
object. Index Optional Variant. The recipient. If this argument
isn't specified, the Recipients property returns (or can be set to)
an array that contains all recipients.
Remarks
The order of the recipient list defines the delivery order if the
routing delivery option is xlOneAfterAnother.
If a routing slip is in progress, only those recipients who haven't
already received and routed the document are returned or set.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Retrieving Value

Hi Dick,
Thank you for the code. Unfortantely, it is not working. I would welcome
any other suggestions please. Thank you in advance.
Jeff

"Dick Kusleika" wrote:

Jeff

I wouldn't use Names as it's a reserved word and you probably don't need a
variable anyway.

Dim i As Long

With ThisWorkbook.RoutingSlip.Recipients
For i = 1 to .Count
Sheet1.Cells(i,1).Value = .Item(i)
Next i
End With

Untested, but I think it will work.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Jeff wrote:
Greetings,
My worksheet uses Routing and I would like to pull the Routing
Recepients names off of the routing slip and put them somewhere on
the worksheet to everyone can see who the worksheet will be routed
to. I have read the help file on this, but I am a little confused.
Below is what Help says. I would just like code to retreive the
routing recipients. I think my code should be something like:
Names = ThisWorkbook.RoutingSlip.Recepients, but I am confused.

help please.....

Syntax
expression.Recipients(Index)
expression Required. An expression that returns a RoutingSlip
object. Index Optional Variant. The recipient. If this argument
isn't specified, the Recipients property returns (or can be set to)
an array that contains all recipients.
Remarks
The order of the recipient list defines the delivery order if the
routing delivery option is xlOneAfterAnother.
If a routing slip is in progress, only those recipients who haven't
already received and routed the document are returned or set.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Retrieving Value

Sub AAABB()
Dim myNames As Variant
Dim rw As Long
myNames = ThisWorkbook.RoutingSlip.Recipients()
rw = 10
For i = LBound(myNames) To UBound(myNames)
Cells(rw, "Z").Value = myNames(i)
rw = rw + 1
Next

End Sub

--
Regards,
Tom Ogilvy



"Jeff" wrote in message
...
Hi Dick,
Thank you for the code. Unfortantely, it is not working. I would welcome
any other suggestions please. Thank you in advance.
Jeff

"Dick Kusleika" wrote:

Jeff

I wouldn't use Names as it's a reserved word and you probably don't need

a
variable anyway.

Dim i As Long

With ThisWorkbook.RoutingSlip.Recipients
For i = 1 to .Count
Sheet1.Cells(i,1).Value = .Item(i)
Next i
End With

Untested, but I think it will work.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Jeff wrote:
Greetings,
My worksheet uses Routing and I would like to pull the Routing
Recepients names off of the routing slip and put them somewhere on
the worksheet to everyone can see who the worksheet will be routed
to. I have read the help file on this, but I am a little confused.
Below is what Help says. I would just like code to retreive the
routing recipients. I think my code should be something like:
Names = ThisWorkbook.RoutingSlip.Recepients, but I am confused.

help please.....

Syntax
expression.Recipients(Index)
expression Required. An expression that returns a RoutingSlip
object. Index Optional Variant. The recipient. If this argument
isn't specified, the Recipients property returns (or can be set to)
an array that contains all recipients.
Remarks
The order of the recipient list defines the delivery order if the
routing delivery option is xlOneAfterAnother.
If a routing slip is in progress, only those recipients who haven't
already received and routed the document are returned or set.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Retrieving Value

Tom,
this is absolutely amazing!! It works great. Thank you,
Jeff

"Tom Ogilvy" wrote:

Sub AAABB()
Dim myNames As Variant
Dim rw As Long
myNames = ThisWorkbook.RoutingSlip.Recipients()
rw = 10
For i = LBound(myNames) To UBound(myNames)
Cells(rw, "Z").Value = myNames(i)
rw = rw + 1
Next

End Sub

--
Regards,
Tom Ogilvy



"Jeff" wrote in message
...
Hi Dick,
Thank you for the code. Unfortantely, it is not working. I would welcome
any other suggestions please. Thank you in advance.
Jeff

"Dick Kusleika" wrote:

Jeff

I wouldn't use Names as it's a reserved word and you probably don't need

a
variable anyway.

Dim i As Long

With ThisWorkbook.RoutingSlip.Recipients
For i = 1 to .Count
Sheet1.Cells(i,1).Value = .Item(i)
Next i
End With

Untested, but I think it will work.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

Jeff wrote:
Greetings,
My worksheet uses Routing and I would like to pull the Routing
Recepients names off of the routing slip and put them somewhere on
the worksheet to everyone can see who the worksheet will be routed
to. I have read the help file on this, but I am a little confused.
Below is what Help says. I would just like code to retreive the
routing recipients. I think my code should be something like:
Names = ThisWorkbook.RoutingSlip.Recepients, but I am confused.

help please.....

Syntax
expression.Recipients(Index)
expression Required. An expression that returns a RoutingSlip
object. Index Optional Variant. The recipient. If this argument
isn't specified, the Recipients property returns (or can be set to)
an array that contains all recipients.
Remarks
The order of the recipient list defines the delivery order if the
routing delivery option is xlOneAfterAnother.
If a routing slip is in progress, only those recipients who haven't
already received and routed the document are returned or set.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving file Darlene Excel Discussion (Misc queries) 1 April 24th 07 02:14 AM
retrieving information hsb101 Excel Discussion (Misc queries) 1 August 3rd 06 09:15 AM
Retrieving formulae Rob Oldfield Excel Discussion (Misc queries) 3 October 12th 05 01:59 PM
Help Please!, Retrieving E-Mail Fernando Ortiz Excel Programming 2 December 11th 03 02:31 AM
Retrieving URL ChuckS Excel Programming 0 November 6th 03 09:31 PM


All times are GMT +1. The time now is 06:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"