Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Font to be larger in line of VBA

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.


Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Font to be larger in line of VBA

I did a learn macro and got the following code. Modify this code as needed.
I jsut entered the text abc followed by some spaces , changed font size, then
typed efg.

ActiveCell.FormulaR1C1 = "abc efg"
With ActiveCell.Characters(Start:=1, Length:=8).Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
With ActiveCell.Characters(Start:=9, Length:=3).Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 16
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With
Range("F108").Select

"Corey" wrote:

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.


Corey....



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Font to be larger in line of VBA

Not in a msgbox.

Maybe you could design your own userform????

Corey wrote:

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.

Corey....


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Font to be larger in line of VBA

To extend Dave's answer with a possible workaround

MsgBox "Welcome " & Ucase(.UserName) & " to the File.", vbInformation

Not that attractive, but it would stand out.

--
Regards,
Tom Ogilvy


"Dave Peterson" wrote in message
...
Not in a msgbox.

Maybe you could design your own userform????

Corey wrote:

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.

Corey....


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Font to be larger in line of VBA

Or maybe putting them on a separate line would help:

MsgBox "Welcome" & vblf & Ucase(.UserName) & vblf & "to the File.", _
vbInformation

(or surround the name with asterisks???)

Tom Ogilvy wrote:

To extend Dave's answer with a possible workaround

MsgBox "Welcome " & Ucase(.UserName) & " to the File.", vbInformation

Not that attractive, but it would stand out.

--
Regards,
Tom Ogilvy

"Dave Peterson" wrote in message
...
Not in a msgbox.

Maybe you could design your own userform????

Corey wrote:

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.

Corey....


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Font to be larger in line of VBA

Like your reply thanks Tom


"Tom Ogilvy" wrote in message
...
To extend Dave's answer with a possible workaround

MsgBox "Welcome " & Ucase(.UserName) & " to the File.", vbInformation

Not that attractive, but it would stand out.

--
Regards,
Tom Ogilvy


"Dave Peterson" wrote in message
...
Not in a msgbox.

Maybe you could design your own userform????

Corey wrote:

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.

Corey....


--

Dave Peterson





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Font to be larger in line of VBA

(and use multiple labels, too)

Corey wrote:

MsgBox "Welcome " & .UserName & " to the File.", vbInformation

Is there a Way to change the .Username to have a Larger or Bold Font?
I want to make this stand out MORE than the surrounding text.

Corey....


--

Dave Peterson
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 can I reformat all comments to a larger font? ronv Excel Worksheet Functions 2 March 6th 09 02:05 AM
How do you format a larger font for cell comments ? s-steege[_2_] Excel Worksheet Functions 1 November 11th 08 07:44 PM
How do I make the font on worksheet tab labels larger? lmlorenze Excel Discussion (Misc queries) 1 June 21st 07 05:40 PM
How do I get a larger font in the HELP panels? toyf Excel Discussion (Misc queries) 1 December 28th 06 02:00 AM
Is it possible to make comments font larger by default? [email protected] Excel Discussion (Misc queries) 3 October 10th 05 07:05 PM


All times are GMT +1. The time now is 02:09 AM.

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

About Us

"It's about Microsoft Excel"