+ Reply to Thread
Results 1 to 4 of 4

How to correctly write "Value of cell E16" while having the quotations around it.

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    46

    How to correctly write "Value of cell E16" while having the quotations around it.

    part of my code which automatically sends emails out is

    .Subject = "This is the Subject line"

    this will basically make the subject of the emial "This is the Subject line" and the quotes are essential for the code to work. Now i want to change it in a way that the value of E16 says the subject. For example, if the value of E16 was hi, this will be equivalent to

    .Subject = "hi"

    Again the quotes are essential. Is there a way I can do this, thanks very much.

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: How to correctly write "Value of cell E16" while having the quotations around it.

    Try this..

    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How to correctly write "Value of cell E16" while having the quotations around it.

    the quotes are only required because you are passing a string literal. use
    Please Login or Register  to view this content.
    specifying the sheet if required
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: How to correctly write "Value of cell E16" while having the quotations around it.

    Thanks both of you, my problem is solved

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1