Macro to send email from Vlookup cell value
Solved/Closed
KingTut
-
May 19, 2010 at 09:02 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 19, 2010 at 11:36 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - May 19, 2010 at 11:36 AM
Related:
- Vlookup macro
- Spell number in excel without macro - Guide
- Macro excel download - Download - Spreadsheets
- Excel macro to create new sheet based on value in cells - Guide
- Run macro on opening workbook - Guide
- Excel vba assign macro to button programmatically - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
May 19, 2010 at 09:23 AM
May 19, 2010 at 09:23 AM
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?
May 19, 2010 at 10:32 AM
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?
May 19, 2010 at 10:41 AM
May 19, 2010 at 11:19 AM
"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?
May 19, 2010 at 11:36 AM
"I have booked " & Cells(cell.Row, "D").text is how you would code it