Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

Any Excel experts in here?

Thread Tools
 
Old Oct 20, 2005 | 09:53 AM
  #1  
Paul S's Avatar
Thread Starter
Registered User
 
Joined: Apr 2003
Posts: 1,107
Likes: 0
From: UT
Default Any Excel experts in here?

I'm trying to make a part of a cell bold

i.e. Say you had a formula of:

="... extend the Agreement until "& TEXT(Info!C12, "mmmmmmm d, yyyy") &", based upon the following terms and conditions:"

and I just wanted to make the date in bold, how would I do that? Any thoughts?
Reply
Old Oct 20, 2005 | 10:46 AM
  #2  
exceltoexcel's Avatar
Registered User
 
Joined: Jan 2004
Posts: 4,938
Likes: 0
From: limerick
Default

I don't know if it's possible within a formula, at least I haven't figured out how to do it within a formula, however here's some code that will format a selected cell containing a date into the text you want. I don't know if this will be useful.

Open vba and insert this code in a module

''''''''''''''''''''''''''''''''''''''''''

Public Sub Fordate()

Dim datearea As Range

Set datearea = Selection

If Len(datearea) < 50 Then

s$ = Format(datearea(1, 1), "mmmm, d, yyyy")

datearea = "... extend the Agreement until " & s$ & " based upon the following terms and conditions:"

ActiveCell.Characters(Start:=32, Length:=Len(s$)).Font.FontStyle = "Bold"

End If

End Sub


''''''''''''''''''''''''''

Now you need to make a button

Right click on your tool bar --> select customize --> commands -->in categories select macros --> in commands left click and hold the mouse button down to drag the custom button onto the tool bar. close that window. now you should have a little smiley face on your toolbar double click it! Now a macro window should pop open. Select Fordate. Now if you select a cell with a date in it and click the smiley face it'll convert it into the text you want (not a formula) with the date being bold.

ONLY SELECT ONE CELL AT A TIME.

hope this helps.
Reply
Old Oct 20, 2005 | 11:56 AM
  #3  
S2020's Avatar
Member (Premium)
20 Year Member
Liked
Loved
 
Joined: Mar 2002
Posts: 112,963
Likes: 150
From: Doh!!
Default

he he he... I guess with your name you HAS to be good at Excel.
Reply
Old Oct 20, 2005 | 11:57 AM
  #4  
exceltoexcel's Avatar
Registered User
 
Joined: Jan 2004
Posts: 4,938
Likes: 0
From: limerick
Default

Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
ironwedge
Off-topic Talk
10
May 17, 2005 09:49 AM
steven975
Off-topic Talk
13
Oct 31, 2004 01:30 PM
ironwedge
Off-topic Talk
18
Apr 7, 2004 03:12 AM




All times are GMT -8. The time now is 01:24 AM.