Macro to send email from Vlookup cell value
Solved/Closed
KingTut
-
19 May 2010 à 09:02
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 19 May 2010 à 11:36
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 19 May 2010 à 11:36
Related:
- Vlookup macro
- Iserror function in excel with vlookup - Guide
- Excel online macro - Guide
- Excel run macro on open - Guide
- Macro for number to words in excel - Guide
- How to copy macro from one workbook to another - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
19 May 2010 à 09:23
19 May 2010 à 09:23
If this vlookup is in column I, then you are saying so yourself
Columns("I").Cells.SpecialCells(xlCellTypeConstants)
Shouldn't you be using xlCellTypeFormulas?
Columns("I").Cells.SpecialCells(xlCellTypeConstants)
Shouldn't you be using xlCellTypeFormulas?
19 May 2010 à 10:32
Such a simple error grrrr....
One more question that maybe you could answer for me?? If I want to return a value in a cell that has been formatted in the body of my message is there a certain naming convention to use?
i.e.- I have a cell with 25455.43 in it formatted to show $25,455.43.
Using the line ThisWorkbook.Sheets("Sheet2").Range("B5").Value only seems to input the original number without formatting. Is there a way to correct this easily?
19 May 2010 à 10:41
19 May 2010 à 11:19
"I have booked " & Cells(cell.Row, "D") _
That should have it read: I have booked $254,455.43
How do I use the .text function there?
19 May 2010 à 11:36
"I have booked " & Cells(cell.Row, "D").text is how you would code it