Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Insert Tab Character

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Insert Tab Character

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Insert Tab Character

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


  #4   Report Post  
Posted to microsoft.public.excel.programming
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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Insert Tab Character

Was the Format function call meant to be on the same line as your
..appendtext line? If so, then you are missing the & symbol in order to
concatenate it to the other text. If not, then the Format function has to be
used in some way (assigned to a variable, tested in an If..Then statement,
etc.)... you just have it sitting there.

--
Rick (MVP - Excel)


"Nigel" wrote in message
...
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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Insert Tab Character

Was the Format function call meant to be on the same line as your
..appendtext line? If so, then you are missing the & symbol in order to
concatenate it to the other text. If not, then the Format function has to be
used in some way (assigned to a variable, tested in an If..Then statement,
etc.)... you just have it sitting there.

--
Rick (MVP - Excel)


"Nigel" wrote in message
...
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



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Insert Tab Character

..appendtext "GLOBALDL Billings = " String(5,vbtab) &
Format(Round(Sheets("Variance").Range("C3"), 0)

Expected end of Statement error

"Jacob Skaria" wrote:

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


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Insert Tab Character

..appendtext "GLOBALDL Billings = " String(5,vbtab) &
Format(Round(Sheets("Variance").Range("C3"), 0)

Expected end of Statement error

"Jacob Skaria" wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert tab character into the cell? kang New Users to Excel 2 July 16th 07 01:01 PM
Insert Character into Editing-Cell MJ Excel Programming 2 July 13th 05 02:45 AM
Insert Character in a String Laguna Excel Programming 1 July 7th 05 01:28 PM
Insert Character At start of cell Andibevan[_2_] Excel Programming 1 May 17th 05 11:54 AM
Insert a special character before and after a word Venkatesh V Excel Discussion (Misc queries) 1 February 21st 05 02:07 PM


All times are GMT +1. The time now is 11:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"