Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Newbie: How to define the font size in the status bar window?

How do I define the font size in the status bar window before I apply the
Application.StatusBar = "text" ?

Thanks for any suggestion.


Frank




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Newbie: How to define the font size in the status bar window?

I don't believe there is any vba object property to do this.

--
Regards,
Tom Ogilvy

"Frank Krogh" wrote in message
...
How do I define the font size in the status bar window before I apply the
Application.StatusBar = "text" ?

Thanks for any suggestion.


Frank






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Newbie: How to define the font size in the status bar window?

Hi
AFAIK this is either a windows setting or can't be changed
at all.
-----Original Message-----
How do I define the font size in the status bar window

before I apply the
Application.StatusBar = "text" ?

Thanks for any suggestion.


Frank




.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Newbie: How to define the font size in the status bar window?

Hi Frank;

Private Declare Function FindWindow& Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName$, ByVal lpWindowName$)
Private Declare Function FindWindowEx& Lib "user32" _
Alias "FindWindowExA" (ByVal hWnd1&, ByVal hWnd2& _
, ByVal lpsz1$, ByVal lpsz2$)
Private Declare Function GetDC& Lib "user32" (ByVal hWnd&)
Private Declare Function CreateFont& Lib "gdi32" Alias _
"CreateFontA" (ByVal nHeight&, ByVal nWidth& _
, ByVal nEscapement&, ByVal nOrientation&, ByVal fnWeight& _
, ByVal fdwItalic As Boolean, ByVal fdwUnderline As Boolean _
, ByVal fdwStrikeOut As Boolean, ByVal fdwCharSet& _
, ByVal fdwOutputPrecision&, ByVal fdwClipPrecision& _
, ByVal fdwQuality&, ByVal fdwPitchAndFamily&, ByVal lpszFace$)
Private Declare Function SelectObject& Lib "gdi32" (ByVal hDC&, ByVal hObject&)
Private Declare Function DeleteObject& Lib "gdi32" (ByVal hObject&)
Private Declare Function ReleaseDC& Lib "user32" (ByVal hWnd&, ByVal hDC&)

Sub StatusBarTest()
Dim BarState As Boolean, hWnd&, hDC&, hFont&, hObj&
BarState = Application.DisplayStatusBar
Application.DisplayStatusBar = True
hWnd = FindWindow(vbNullString, Application.Caption)
hWnd = FindWindowEx(hWnd, ByVal 0&, "EXCEL4", vbNullString)
hDC = GetDC(hWnd)
hFont = CreateFont(-12, 0, 0, 0, 700, 1, 1, 0, 0, 0, 0, 0, 0, "Times New Roman")
hObj = SelectObject(hDC, hFont)
Application.StatusBar = "This is my new police for StatusBar !"
MsgBox "How's that ?", 64
Application.StatusBar = False
SelectObject hDC, hObj
DeleteObject hFont
ReleaseDC hWnd, hDC
Application.DisplayStatusBar = BarState
End Sub

MP

"Frank Krogh" a écrit dans le message de
...
How do I define the font size in the status bar window before I apply the
Application.StatusBar = "text" ?

Thanks for any suggestion.


Frank






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
'developer reference' help window font size... pm_sam Excel Discussion (Misc queries) 0 December 18th 09 08:02 AM
'developer reference' help window font size... pm_sam Excel Discussion (Misc queries) 0 December 17th 09 04:43 PM
'developer reference' help window font size... pm_sam Excel Worksheet Functions 0 December 16th 09 07:53 PM
Data Valadition window font size agcoupe Excel Discussion (Misc queries) 1 May 30th 06 06:27 PM
increase font size in status bar: excel sums Squinty Excel Discussion (Misc queries) 0 May 29th 06 08:13 AM


All times are GMT +1. The time now is 12:36 AM.

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"