Cell reference in code

  • Thread starter Thread starter J.W. Aldridge
  • Start date Start date
J

J.W. Aldridge

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top