PC Review


Reply
Thread Tools Rate Thread

Button to format selected text as subscript

 
 
John
Guest
Posts: n/a
 
      4th Apr 2004
I would like to create a custom button in XL2k to format the selected
text as subscript, superscript, etc. It would function just like the
built-in buttons in Word. That is, I could select a portion of the
text in a cell's string, hit the button and the selected portion would
be formatted. As is, when I select a portion of the string the macro
menu options are greyed out. I note that the copy and paste buttons
don't grey out. Has anyone found a work around?

Thanks,
John
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      4th Apr 2004
Macros are suspended when in Edit mode, so a custom button wont' work.

You may want to look at John Walkenbach's SuperSub add-in, which makes
super/sub-scripting a bit easier:

http://j-walk.com/ss/excel/files/supersub.htm



In article <(E-Mail Removed)>,
(E-Mail Removed) (John) wrote:

> I would like to create a custom button in XL2k to format the selected
> text as subscript, superscript, etc. It would function just like the
> built-in buttons in Word. That is, I could select a portion of the
> text in a cell's string, hit the button and the selected portion would
> be formatted. As is, when I select a portion of the string the macro
> menu options are greyed out. I note that the copy and paste buttons
> don't grey out. Has anyone found a work around?

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      4th Apr 2004
How about just using John Walkenbach's addin:

http://j-walk.com/ss/excel/files/supersub.htm

(Macros that run while you're editting a cell won't do anything useful.)

John wrote:
>
> I would like to create a custom button in XL2k to format the selected
> text as subscript, superscript, etc. It would function just like the
> built-in buttons in Word. That is, I could select a portion of the
> text in a cell's string, hit the button and the selected portion would
> be formatted. As is, when I select a portion of the string the macro
> menu options are greyed out. I note that the copy and paste buttons
> don't grey out. Has anyone found a work around?
>
> Thanks,
> John


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superscript/subscript selected text within a cell Phrank Microsoft Excel Programming 3 8th Aug 2007 03:33 AM
Tab button is deleting selected text. =?Utf-8?B?Ymp3ejI0?= Microsoft Word Document Management 3 6th Apr 2007 01:34 PM
Changeing the format of selected text changes all text =?Utf-8?B?UnVzc2VsbCBFYWdsaW5n?= Microsoft Word Document Management 3 15th May 2006 01:03 PM
Changing selected text format Prosperina Microsoft Excel Worksheet Functions 2 12th Oct 2004 06:35 AM
Making some Button text subscript WhyTea Microsoft ASP .NET 0 6th Apr 2004 02:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:42 PM.