Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MamaBirdie
 
Posts: n/a
Default global text box changes in Excel

I've downloaded a 12-month-on-1-page 2006 calendar into Excel. Each
individual date is its own text box. I would like to increase the size of
the font for every text box. Is there a way to do it globally or do I have
to change each text box individually?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default global text box changes in Excel

Try a macro like the following


Sub IncreaseFont()
Dim OLEObj As OLEObject
For Each OLEObj In Worksheets("Sheet1").OLEObjects
With OLEObj
If TypeOf .Object Is MSForms.TextBox Then
.Object.Font.Size = 16 ' whatever font size you want
End If
End With
Next OLEObj
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"MamaBirdie" wrote in
message
...
I've downloaded a 12-month-on-1-page 2006 calendar into Excel.
Each
individual date is its own text box. I would like to increase
the size of
the font for every text box. Is there a way to do it globally
or do I have
to change each text box individually?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default global text box changes in Excel

Mama

Gord Dibben
Dec 20 2005, 10:02 am show options

Newsgroups: microsoft.public.excel.newusers
From: Gord Dibben <gorddibbATshawDOTca - Find messages by this author
Date: Tue, 20 Dec 2005 10:02:45 -0800
Local: Tues, Dec 20 2005 10:02 am
Subject: how to change font size on calender
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse

Bert


Most of the Calendars from the Template Gallery have the day numbers
inside
individual Text Boxes.


You can manually select these one by one and change the font size or
use a macro to cycle through each box.

For the 2006 12 month per page calendar this code will work.

Sub Change_Font()
Columns("B:H").Select
ActiveSheet.DrawingObjects.Select
For Each TextBox In Selection
With TextBox.Characters(Start:=1, Length:=2).Font
.Name = "Comic Sans MS"
.FontStyle = "Regular"
.Size = 14
.ColorIndex = xlAutomatic
End With
Next
Range("E3").Select
End Sub


Gord Dibben Excel MVP


On Mon, 9 Jan 2006 08:47:03 -0800, "MamaBirdie"
wrote:

I've downloaded a 12-month-on-1-page 2006 calendar into Excel. Each
individual date is its own text box. I would like to increase the size of
the font for every text box. Is there a way to do it globally or do I have
to change each text box individually?


Gord Dibben MS Excel MVP
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 wrap text in a text box in Excel? 4407mark Excel Discussion (Misc queries) 3 October 28th 05 11:20 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Truncated text when copying text from one excel doc to another sunny pete Excel Discussion (Misc queries) 3 August 12th 05 02:11 PM
How do I set Excel cell format to "Text" from VB.NET? John Brock Excel Discussion (Misc queries) 8 July 26th 05 04:36 AM
I want Excel to allow cells with formulas and unrelated text blueboy Excel Discussion (Misc queries) 9 March 4th 05 12:22 AM


All times are GMT +1. The time now is 07:17 PM.

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"