PC Review


Reply
Thread Tools Rate Thread

Cell reference in code

 
 
J.W. Aldridge
Guest
Posts: n/a
 
      16th Mar 2009

I use this automated email code from one of the experts however, I'd
like to change point the subject field to a cell reference - the value
(always a date) in cell G1.



..Subject = ""


 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      16th Mar 2009
Try this...

..Subject = Range("G1").Text

--
Rick (MVP - Excel)


"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:a24630d4-7746-427b-8c74-(E-Mail Removed)...
>
> I use this automated email code from one of the experts however, I'd
> like to change point the subject field to a cell reference - the value
> (always a date) in cell G1.
>
>
>
> .Subject = ""
>
>


 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      16th Mar 2009
Hi

..Subject = Range("G1").Text

Or

..Subject = Sheets("Sheet1").Range("G1").Text

The sheet reference is only needed if sheet1 isn't the active sheet.

---
Per

"J.W. Aldridge" <(E-Mail Removed)> skrev i meddelelsen
news:a24630d4-7746-427b-8c74-(E-Mail Removed)...
>
> I use this automated email code from one of the experts however, I'd
> like to change point the subject field to a cell reference - the value
> (always a date) in cell G1.
>
>
>
> .Subject = ""
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Go to from reference in VBA code to actual cell? John Dalberg Microsoft Excel Programming 5 16th Sep 2006 03:15 PM
Reference filename used in code from cell shamble@gmail.com Microsoft Excel Programming 5 15th Mar 2006 02:53 PM
Cell Reference is Worksheet Name in VB Code Mikeice Microsoft Excel Programming 14 10th Jun 2005 02:45 PM
Re: Cell Reference is Worksheet Name in VB Code mangesh_yadav Microsoft Excel Programming 0 10th Jun 2005 04:48 AM
Code To Insert Cell Reference =?Utf-8?B?Q2FybCBCb3dtYW4=?= Microsoft Excel Programming 6 13th Feb 2005 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.