#1   Report Post  
kmleague
 
Posts: n/a
Default excel chemisty

When I put a chemistry formula into excel, I have to manually go through and
change almost every single number into a subscript through font modification.
Is there an easier way to do this?
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

While still tedious, John Walkenbach has a utility that
quickens the process somewhat:

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

HTH
Jason
Atlanta, GA

-----Original Message-----
When I put a chemistry formula into excel, I have to

manually go through and
change almost every single number into a subscript

through font modification.
Is there an easier way to do this?
.

  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

kmleague,

Select the cell with the formula, and run the macro below. Assumes that
every number need to be subscripted.

HTH,
Bernie
MS Excel MVP

Sub ApplySubScripts()
Dim i As Integer
Dim j As Integer

On Error GoTo ErrHandler
For i = 1 To Len(ActiveCell.Value)
j = CInt(Mid(ActiveCell.Value, i, 1))
ActiveCell.Characters(Start:=i, Length:=1).Font.Subscript = True
NotNumb:
Next i
Exit Sub

ErrHandler:
Resume NotNumb

End Sub


"kmleague" wrote in message
...
When I put a chemistry formula into excel, I have to manually go through

and
change almost every single number into a subscript through font

modification.
Is there an easier way to do this?



  #4   Report Post  
RagDyeR
 
Posts: n/a
Default

This should be *exactly* what you're looking for.


http://spectrum.troyst.edu/~cking/ChemFormat/index.html
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"kmleague" wrote in message
...
When I put a chemistry formula into excel, I have to manually go through and
change almost every single number into a subscript through font
modification.
Is there an easier way to do this?


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
html to excel nellie Excel Discussion (Misc queries) 4 February 8th 05 10:37 PM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM
Merge from Excel to Excel dalstar Excel Discussion (Misc queries) 3 January 30th 05 02:37 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM
Shortcut file fails to open JimH Excel Discussion (Misc queries) 3 January 15th 05 10:13 PM


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