View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default Insert Tab Character

Try vbTab

String(5,vbtab)

If this post helps click Yes
---------------
Jacob Skaria


"Nigel" wrote:

inserted it here
.appendtext "GLOBALDL Billings = " & chr(9)
Format(Round(Sheets("Variance").Range("C3"), 0), "#,###")

message is "Expected End of Statement"

"Gary''s Student" wrote:

Try vbTab or Chr(9).
--
Gary''s Student - gsnu200855


"Nigel" wrote:

I am trying to insert a tab character into a msg line for an email being
generated in excel, the tab function does not work, can someone supply the
format I would need to use in the following code

.appendtext "GLOBALDL Billings = " Tab(5) &
Round(Sheets("Variance").Range("C3"), 0) & " Bookings = " & Tab(5)
Round(Sheets("Variance").Range("d3"), 0)

the tab() function is only for printing

much appreciated