Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

I need help with Code for a Command button I need the were is says Username to pull this data from a Cell in the worksheet.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cwebb - 27 Apr 2006 00:54 GMT
Private Sub CommandButton1_Click()
'
' Macro2 Macro
' Macro recorded 4/26/2006 by username
'

'
   ActiveWorkbook.HasRoutingSlip = True
   With ActiveWorkbook.RoutingSlip
       .Recipients = "User Name" Need the value to pull the information from a Cell on the worksheet to reflect the value of data in a Cell Example: A1= "User" and the Code will reflect .Recipients = "User"
       .Subject = "Routing: Form"
       .Message = ""
       .Delivery = xlOneAfterAnother
       .ReturnWhenDone = True
       .TrackStatus = True
   End With
   ActiveWorkbook.Route
End Sub
Jean-Guy Marcil - 27 Apr 2006 21:09 GMT
cwebb was telling us:
cwebb nous racontait que :

> Private Sub CommandButton1_Click()
> '
[quoted text clipped - 17 lines]
>     ActiveWorkbook.Route
> End Sub

This is a Word group... Should have asked in an Excel group...

Also, please, it is more considerate to have the actual question in the
body, not the subject line...

In any case, try this:

   .Recipients = .Sheets("SheetName").Range("A1")

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.