Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default Subscripts and superscripts

I believe that a limitation to macro recording within Excel disables a user
from ending a macro recording when a menu is open.

I know there are no keyboard shortcuts for subscripts and superscripts
within Excel, as there are for Word.

As an attempt to work around the limitations, I began a macro and oped the
Format Cells dialogue box, and displayed the tab that shows the supscript and
superscript commands. I attempted to stop the macro but could not because the
menu was open.

Does anyone have a way to get around this, or have a macro/program that will
allow a user to create a keyboard shortcut for subscripts and superscripts?

I rely on these two commands heavily for work and it is a constant nag to
have to open and close the menu.

Thanks in advance for anyone's help.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Subscripts and superscripts

I'd look at the way John Walkenbach approached it:
http://j-walk.com/ss/excel/files/supersub.htm

Scott wrote:

I believe that a limitation to macro recording within Excel disables a user
from ending a macro recording when a menu is open.

I know there are no keyboard shortcuts for subscripts and superscripts
within Excel, as there are for Word.

As an attempt to work around the limitations, I began a macro and oped the
Format Cells dialogue box, and displayed the tab that shows the supscript and
superscript commands. I attempted to stop the macro but could not because the
menu was open.

Does anyone have a way to get around this, or have a macro/program that will
allow a user to create a keyboard shortcut for subscripts and superscripts?

I rely on these two commands heavily for work and it is a constant nag to
have to open and close the menu.

Thanks in advance for anyone's help.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Subscripts and superscripts

Here is my take on what you are wanting to do. In a standard code module
(same place your recorded macro landed paste the following code

Public Sub ConvertToSuperScript()
With Selection.Font
.Superscript = Not .Superscript
End With
End Sub

Public Sub ConvertToSubScript()
With Selection.Font
.Subscript = Not .Subscript
End With
End Sub

go back to XL and select Macro - Macros...
Select one of the tow macros and then hit the options button. Define the
keyboard shortcut key. Do the same for the other macro in the list.

The macros will toggle back and forth between Super / Sub and regular script.
--
HTH...

Jim Thomlinson


"Scott" wrote:

I believe that a limitation to macro recording within Excel disables a user
from ending a macro recording when a menu is open.

I know there are no keyboard shortcuts for subscripts and superscripts
within Excel, as there are for Word.

As an attempt to work around the limitations, I began a macro and oped the
Format Cells dialogue box, and displayed the tab that shows the supscript and
superscript commands. I attempted to stop the macro but could not because the
menu was open.

Does anyone have a way to get around this, or have a macro/program that will
allow a user to create a keyboard shortcut for subscripts and superscripts?

I rely on these two commands heavily for work and it is a constant nag to
have to open and close the menu.

Thanks in advance for anyone's help.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Subscripts and superscripts

After re-reading your post it looks like you are wanting to chnge some but
not all characters to be super or sub script. That being the case go with
Dave's solution. Macros can not run while you are in edit mode within a cell.
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

Here is my take on what you are wanting to do. In a standard code module
(same place your recorded macro landed paste the following code

Public Sub ConvertToSuperScript()
With Selection.Font
.Superscript = Not .Superscript
End With
End Sub

Public Sub ConvertToSubScript()
With Selection.Font
.Subscript = Not .Subscript
End With
End Sub

go back to XL and select Macro - Macros...
Select one of the tow macros and then hit the options button. Define the
keyboard shortcut key. Do the same for the other macro in the list.

The macros will toggle back and forth between Super / Sub and regular script.
--
HTH...

Jim Thomlinson


"Scott" wrote:

I believe that a limitation to macro recording within Excel disables a user
from ending a macro recording when a menu is open.

I know there are no keyboard shortcuts for subscripts and superscripts
within Excel, as there are for Word.

As an attempt to work around the limitations, I began a macro and oped the
Format Cells dialogue box, and displayed the tab that shows the supscript and
superscript commands. I attempted to stop the macro but could not because the
menu was open.

Does anyone have a way to get around this, or have a macro/program that will
allow a user to create a keyboard shortcut for subscripts and superscripts?

I rely on these two commands heavily for work and it is a constant nag to
have to open and close the menu.

Thanks in advance for anyone's help.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...el.programming

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
Subscripts James Excel Discussion (Misc queries) 6 July 16th 08 02:25 PM
Superscripts and Subscripts LEW Excel Discussion (Misc queries) 0 November 10th 05 03:06 PM
How to insert subscripts and superscripts in data in excel Ginwithtonic Excel Discussion (Misc queries) 2 March 31st 05 01:16 AM
How do you make superscripts and subscripts in Excel? Mona Excel Discussion (Misc queries) 2 January 19th 05 12:50 AM


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

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"