Я хотел бы добавить диапазон от моего листа до тела письма, которое генерируется, но vba.Я продолжаю получать ошибки, и любая помощь будет оценена
myRange = Range("A12:A12.End(xlDown)").SpecialCells(xlCellTypeVisible)
'This will extract the info for the worksheet
'This extracts the subject title from the worksheet
EmailSubject = "STOCKS " & Type1 & " - " & Left(Trade, 6) & " [" & _
Range("A12").Value & "/" & Range("A12").End(xlDown).Value _
& "]: % at %"
Body = "<b>" & Range("A8").Value & "</b><br/>" & Range("A9").Value & "<br/>" _
& Range("A10").Value & "<br/><br/>" _
& myRange