PC Review


Reply
Thread Tools Rate Thread

Change color for docmd subject line

 
 
=?Utf-8?B?SmFl?=
Guest
Posts: n/a
 
      11th Jul 2007
Hi!

I have a code that goes something like this

Dim strSub1, strSub2 As String
strSub1 = "Hello "
strSub2 = "world"
strSub1 = strSub1 & strSub2
DoCmd.SendObject , , , "(E-Mail Removed)", , , strSub1

I want the second part of the subject (strSub2) to be red (or some other
color that's different from strSub1) when this code is triggered. Does anyone
how to do this? Any help would be appreciated. Thank you.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWF1cmljZQ==?=
Guest
Posts: n/a
 
      11th Jul 2007
Jae,

Why would you want that? In VBA there are a couple of colors and they all
have a pretty specific purpose.

Red means somethings not right with the code you have written (a great
indicator)
Yellow shows the step process when stepping through code
Green means the code is commented being information provided by the
developer or some specific line of code being disabled
Black being the regular color for the code.

My advice would be don't use colors in your code. It's not meant to be a
wordprocessor with formatting possibilities.

And while activating code your users won't see this because that's not the
point of coding something. If it's just for personal use and you want to see
the designated values just hoover your mouse over the variables being set and
you will see a tooltip appear.

hth
--
Maurice Ausum


"Jae" wrote:

> Hi!
>
> I have a code that goes something like this
>
> Dim strSub1, strSub2 As String
> strSub1 = "Hello "
> strSub2 = "world"
> strSub1 = strSub1 & strSub2
> DoCmd.SendObject , , , "(E-Mail Removed)", , , strSub1
>
> I want the second part of the subject (strSub2) to be red (or some other
> color that's different from strSub1) when this code is triggered. Does anyone
> how to do this? Any help would be appreciated. Thank you.
>

 
Reply With Quote
 
=?Utf-8?B?SmFl?=
Guest
Posts: n/a
 
      11th Jul 2007
Dear Maurice,

Thank you for your answer. I don't think I was very clear on my question. I
don't neet to have it red in the VB editor. I need to have it red in the
e-mail content. I know if I want to mak it all upper case, I would do
something like this: Ucase(strBody2). I want to make it different color
instead of making a different case. I'm hoping it would be something simple
like Font(strBody2, vbRed). Thank you.



"Maurice" wrote:

> Jae,
>
> Why would you want that? In VBA there are a couple of colors and they all
> have a pretty specific purpose.
>
> Red means somethings not right with the code you have written (a great
> indicator)
> Yellow shows the step process when stepping through code
> Green means the code is commented being information provided by the
> developer or some specific line of code being disabled
> Black being the regular color for the code.
>
> My advice would be don't use colors in your code. It's not meant to be a
> wordprocessor with formatting possibilities.
>
> And while activating code your users won't see this because that's not the
> point of coding something. If it's just for personal use and you want to see
> the designated values just hoover your mouse over the variables being set and
> you will see a tooltip appear.
>
> hth
> --
> Maurice Ausum
>
>
> "Jae" wrote:
>
> > Hi!
> >
> > I have a code that goes something like this
> >
> > Dim strSub1, strSub2 As String
> > strSub1 = "Hello "
> > strSub2 = "world"
> > strSub1 = strSub1 & strSub2
> > DoCmd.SendObject , , , "(E-Mail Removed)", , , strSub1
> >
> > I want the second part of the subject (strSub2) to be red (or some other
> > color that's different from strSub1) when this code is triggered. Does anyone
> > how to do this? Any help would be appreciated. Thank you.
> >

 
Reply With Quote
 
=?Utf-8?B?TWF1cmljZQ==?=
Guest
Posts: n/a
 
      12th Jul 2007
Jae,

Sorry for the misunderstanding. I understand now what you mean. I've tried
formatting the body while sending a mail from Access. Didn't get it to work.
My guess is that you have to program that from within outlook.
--
Maurice Ausum


"Jae" wrote:

> Dear Maurice,
>
> Thank you for your answer. I don't think I was very clear on my question. I
> don't neet to have it red in the VB editor. I need to have it red in the
> e-mail content. I know if I want to mak it all upper case, I would do
> something like this: Ucase(strBody2). I want to make it different color
> instead of making a different case. I'm hoping it would be something simple
> like Font(strBody2, vbRed). Thank you.
>
>
>
> "Maurice" wrote:
>
> > Jae,
> >
> > Why would you want that? In VBA there are a couple of colors and they all
> > have a pretty specific purpose.
> >
> > Red means somethings not right with the code you have written (a great
> > indicator)
> > Yellow shows the step process when stepping through code
> > Green means the code is commented being information provided by the
> > developer or some specific line of code being disabled
> > Black being the regular color for the code.
> >
> > My advice would be don't use colors in your code. It's not meant to be a
> > wordprocessor with formatting possibilities.
> >
> > And while activating code your users won't see this because that's not the
> > point of coding something. If it's just for personal use and you want to see
> > the designated values just hoover your mouse over the variables being set and
> > you will see a tooltip appear.
> >
> > hth
> > --
> > Maurice Ausum
> >
> >
> > "Jae" wrote:
> >
> > > Hi!
> > >
> > > I have a code that goes something like this
> > >
> > > Dim strSub1, strSub2 As String
> > > strSub1 = "Hello "
> > > strSub2 = "world"
> > > strSub1 = strSub1 & strSub2
> > > DoCmd.SendObject , , , "(E-Mail Removed)", , , strSub1
> > >
> > > I want the second part of the subject (strSub2) to be red (or some other
> > > color that's different from strSub1) when this code is triggered. Does anyone
> > > how to do this? Any help would be appreciated. Thank you.
> > >

 
Reply With Quote
 
=?Utf-8?B?SmFl?=
Guest
Posts: n/a
 
      12th Jul 2007
Dear Maurice,

Thank you for trying. Have a good day. =)

Best regards,

Jae

"Maurice" wrote:

> Jae,
>
> Sorry for the misunderstanding. I understand now what you mean. I've tried
> formatting the body while sending a mail from Access. Didn't get it to work.
> My guess is that you have to program that from within outlook.
> --
> Maurice Ausum
>
>
> "Jae" wrote:
>
> > Dear Maurice,
> >
> > Thank you for your answer. I don't think I was very clear on my question. I
> > don't neet to have it red in the VB editor. I need to have it red in the
> > e-mail content. I know if I want to mak it all upper case, I would do
> > something like this: Ucase(strBody2). I want to make it different color
> > instead of making a different case. I'm hoping it would be something simple
> > like Font(strBody2, vbRed). Thank you.
> >
> >
> >
> > "Maurice" wrote:
> >
> > > Jae,
> > >
> > > Why would you want that? In VBA there are a couple of colors and they all
> > > have a pretty specific purpose.
> > >
> > > Red means somethings not right with the code you have written (a great
> > > indicator)
> > > Yellow shows the step process when stepping through code
> > > Green means the code is commented being information provided by the
> > > developer or some specific line of code being disabled
> > > Black being the regular color for the code.
> > >
> > > My advice would be don't use colors in your code. It's not meant to be a
> > > wordprocessor with formatting possibilities.
> > >
> > > And while activating code your users won't see this because that's not the
> > > point of coding something. If it's just for personal use and you want to see
> > > the designated values just hoover your mouse over the variables being set and
> > > you will see a tooltip appear.
> > >
> > > hth
> > > --
> > > Maurice Ausum
> > >
> > >
> > > "Jae" wrote:
> > >
> > > > Hi!
> > > >
> > > > I have a code that goes something like this
> > > >
> > > > Dim strSub1, strSub2 As String
> > > > strSub1 = "Hello "
> > > > strSub2 = "world"
> > > > strSub1 = strSub1 & strSub2
> > > > DoCmd.SendObject , , , "(E-Mail Removed)", , , strSub1
> > > >
> > > > I want the second part of the subject (strSub2) to be red (or some other
> > > > color that's different from strSub1) when this code is triggered. Does anyone
> > > > how to do this? Any help would be appreciated. Thank you.
> > > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I change the color of the subject line JB Microsoft Outlook Discussion 3 19th Nov 2008 03:39 AM
How do i change the color of the subject line in e-mail? Kofiabi Microsoft Outlook Discussion 1 11th Jan 2008 01:57 PM
change color of font in Subject line =?Utf-8?B?eWVsbG93cm9zZQ==?= Microsoft Outlook Discussion 1 4th Jun 2007 04:13 PM
How do I change the color of the Subject Line? =?Utf-8?B?S01ZSw==?= Microsoft Outlook Discussion 1 22nd Nov 2005 04:18 PM
How to change color of Subject Line??? James Microsoft Outlook 1 28th Jan 2004 01:32 AM


Features
 

Advertising
 

Newsgroups
 


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