How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Richard Your Own Question

Richard
Richard, Software Specialist
Category: Microsoft Office
Satisfied Customers: 32164
Experience:  Over 15 year experience resolving Microsoft Office Issues
32989067
Type Your Microsoft Office Question Here...
Richard is online now
A new question is answered every 9 seconds

In my Excel macro I would like to add the value in a cell to

This answer was rated:

In my Excel macro I would like to add the value in a cell to the body of the email. The text to add is in cell E2. Instead of "Dear Facility Editor," I would like the name in field E2. See below. Thanks!

strbody = "Dear Facility Editor,

" & _
"This report contains missing, inaccurate, or incomplete data in CROWNWeb. The report covers CMS 2728, CMS 2746, notifications, PART, and transient patients. Below is a link to instructions on how to process the report. Please read the instructions before contacting the Network. Remember do not include patient information in email; you may include the CROWN patient ID.

NOTE: PART action type does not have a patient UPI. Email sent to all registered facility editors in CROWNWeb for the facility.
" & _
"
CROWNWeb Feedback Report Instructions"





Thank you for your question, my name is Richard.

you need to use this formula for this

=HYPERLINK([email protected]&subject=Email To You&body=" & E2 & ", Send Email”)

then when they click this link, it will perform the email with whatever is in E2 in the body of the email.

Let me know if you have any difficulties please

Thank you
ok, it will be easier if I do this for you.

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"

Thank you
Customer: replied 3 years ago.


The site is blocked at my organization. The file is here.

ok, I see, you are doing something different to what I understood.

you want to replace the strBody with this

strbody = "Dear " & ThisWorkbook.Sheets("[email protected]").Range("E2") & ",

" & _
"This report contains missing, inaccurate, or incomplete data in CROWNWeb. The report covers CMS 2728, CMS 2746, notifications, PART, and transient patients. Below is a link to instructions on how to process the report. Please read the instructions before contacting the Network. Remember do not include patient information in email; you may include the CROWN patient ID.

NOTE: PART action type does not have a patient UPI. Email sent to all registered facility editors in CROWNWeb for the facility.
" & _
"
CROWNWeb Feedback Report Instructions"


This will get the value from E2

Let me know if you have any difficulties please

thank you






Customer: replied 3 years ago.


I get a compile error.

Tell me the path you want please and I will update it.
Customer: replied 3 years ago.


I want the strbody to say,


 


Dear Margo Clay(field E2),


 


This report contains..........

it Does Margo, when you use the code I gave you.

What was the issue you had?

Customer: replied 3 years ago.


I received a compiled error. I copied the text and placed it into the macro. Click here for a print screen.


 


 

It will be the way you pasted it in.

I have done it for you and you can download it here


Let me know if you have any difficulties please


Richard and other Microsoft Office Specialists are ready to help you
Customer: replied 3 years ago.


Great! It works, no sure what happened with the copy paste. Thanks!