ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Cell reference in code (https://www.excelbanter.com/excel-programming/425635-cell-reference-code.html)

J.W. Aldridge

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



Rick Rothstein

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




Per Jessen

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





All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com