A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Parsing message body for non-breaking space



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 2nd 07, 06:56 PM posted to microsoft.public.outlook.program_vba
John@DerbyUK
external usenet poster
 
Posts: 2
Default Parsing message body for non-breaking space

I have a vba function that parses an outlook tempate to extract location,
start, end and size details for a permit request. My 'test' contractor has
set up the template and everything works fine with the exception of the size
value. They automatically add signatures to all outgoing mail. Between the
last character entered for size and the start of the signature is a
non-breaking space and a crlf character. I want to be able to use the instr
function to find the phrase 'SIZE: ' the value returned from this function
will be used to calculate the start position of a second instr function that
looks for the non-breaking space (what lies in between is the text I am
interested in). Well thats the theory BUT how do I reference the non-breaking
space?
Ads
  #2  
Old August 2nd 07, 09:36 PM posted to microsoft.public.outlook.program_vba
Mark J. McGinty
external usenet poster
 
Posts: 56
Default Parsing message body for non-breaking space


"John@DerbyUK" wrote in message
...
I have a vba function that parses an outlook tempate to extract location,
start, end and size details for a permit request. My 'test' contractor has
set up the template and everything works fine with the exception of the
size
value. They automatically add signatures to all outgoing mail. Between the
last character entered for size and the start of the signature is a
non-breaking space and a crlf character. I want to be able to use the
instr
function to find the phrase 'SIZE: ' the value returned from this function
will be used to calculate the start position of a second instr function
that
looks for the non-breaking space (what lies in between is the text I am
interested in). Well thats the theory BUT how do I reference the
non-breaking
space?



Chr(160)

That returns a string with a single character in it, it can be concatenated
to whatever else in the usual way.


-Mark


  #3  
Old August 2nd 07, 10:34 PM posted to microsoft.public.outlook.program_vba
John@DerbyUK
external usenet poster
 
Posts: 2
Default Parsing message body for non-breaking space

Thanks MaRK

"Mark J. McGinty" wrote:


"John@DerbyUK" wrote in message
...
I have a vba function that parses an outlook tempate to extract location,
start, end and size details for a permit request. My 'test' contractor has
set up the template and everything works fine with the exception of the
size
value. They automatically add signatures to all outgoing mail. Between the
last character entered for size and the start of the signature is a
non-breaking space and a crlf character. I want to be able to use the
instr
function to find the phrase 'SIZE: ' the value returned from this function
will be used to calculate the start position of a second instr function
that
looks for the non-breaking space (what lies in between is the text I am
interested in). Well thats the theory BUT how do I reference the
non-breaking
space?



Chr(160)

That returns a string with a single character in it, it can be concatenated
to whatever else in the usual way.


-Mark



  #4  
Old August 3rd 07, 05:44 AM posted to microsoft.public.outlook.program_vba
Wild Bill
external usenet poster
 
Posts: 13
Default Parsing message body for non-breaking space

Instr will locate a space, so
Instr(1, "Size:924 " & vbcrlf & "Cool Sig", " ")
works. Forgive me for not knowing what a non-breaking space is; what
I'm assuming is that you mean is a conventional space, or
Instr(1, "Size:924 " & vbcrlf & "Cool Sig", chr(32))
So change 32 to the character you want.
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Attachments using VBA and parsing information from subject/body [email protected] Outlook and VBA 3 December 12th 06 07:56 PM
Outlk 2k3 script: Tab in body Task "space to separate text" news.microsoft.com Outlook and VBA 1 November 17th 06 02:13 PM
Message cannot be displayed to low disk space or memory Bruce Hagen Outlook Express 3 August 25th 06 12:25 AM
how do I convert Outlook automatic double space to single space? davidup Outlook - Installation 1 August 22nd 06 04:05 PM
Experiencing insufficient space for Rules; need more space, HOW? Shackin it up in Macon Outlook - Using Contacts 1 May 22nd 06 08:12 AM


All times are GMT +1. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.