Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VB - Macro for mixed fonts

I'm trying to create a macro that will change fonts style automaticall
in a single cell. For example in manual doing this is possible, typin
any data in a single cell can produced mixed fonts by just changing th
font style everytime you want to change the character, but how can thi
be done in macro and just typing a shortcut key for easy encoding an
not clicking the font name or style anymore

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Excel VB - Macro for mixed fonts

Aileen,
Record a macro whilst doing your formatting.

NickHK

"Aileen Ambrosio " wrote in
message ...
I'm trying to create a macro that will change fonts style automatically
in a single cell. For example in manual doing this is possible, typing
any data in a single cell can produced mixed fonts by just changing the
font style everytime you want to change the character, but how can this
be done in macro and just typing a shortcut key for easy encoding and
not clicking the font name or style anymore.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Excel VB - Macro for mixed fonts

Aileen

Adjust to suit.......

Sub CellFont()
With ActiveCell.Characters(Start:=1, length:=5).Font
.ColorIndex = 3
.Bold = True
.Underline = True
.Size = 14
End With
With ActiveCell.Characters(Start:=6, length:=3).Font
.Superscript = True
.ColorIndex = 5
End With
End Sub

Gord Dibben Excel MVP

On Thu, 6 May 2004 22:59:35 -0500, Aileen Ambrosio
wrote:

I'm trying to create a macro that will change fonts style automatically
in a single cell. For example in manual doing this is possible, typing
any data in a single cell can produced mixed fonts by just changing the
font style everytime you want to change the character, but how can this
be done in macro and just typing a shortcut key for easy encoding and
not clicking the font name or style anymore.


---
Message posted from http://www.ExcelForum.com/


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
legend problem in mixed line-scatter graph Excel 2007 Roland Charts and Charting in Excel 0 November 9th 09 07:56 PM
Excel fonts gthegreat1 Excel Discussion (Misc queries) 1 April 21st 09 08:16 PM
in excel: @ and " are mixed up? Gorilla_Bear Setting up and Configuration of Excel 1 May 29th 08 01:48 AM
Fonts for Excel ecoboy Charts and Charting in Excel 0 March 26th 06 11:59 PM
How can I lengthen the drop down Fonts list to show more fonts at Moser D Excel Discussion (Misc queries) 1 February 5th 06 03:24 PM


All times are GMT +1. The time now is 06:02 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"