Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default Cell reference in code


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 = ""


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Cell reference in code

Try this...

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

--
Rick (MVP - Excel)


"J.W. Aldridge" wrote in message
...

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 = ""



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Cell reference in code

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" skrev i meddelelsen
...

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
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
Use text from a cell reference in vba code. JackyJ Excel Discussion (Misc queries) 1 October 4th 10 07:57 AM
Go to from reference in VBA code to actual cell? John Dalberg Excel Programming 5 September 16th 06 03:15 PM
Cell Reference is Worksheet Name in VB Code Mikeice[_13_] Excel Programming 14 June 10th 05 02:45 PM
Cell Reference is Worksheet Name in VB Code mangesh_yadav[_275_] Excel Programming 0 June 10th 05 04:48 AM
Code To Insert Cell Reference Carl Bowman Excel Programming 6 February 13th 05 09:51 PM


All times are GMT +1. The time now is 05:15 PM.

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"