ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Macro to insert a symbol (https://www.excelbanter.com/new-users-excel/87085-macro-insert-symbol.html)

slovak

Macro to insert a symbol
 
I am trying to write a mini macro to insert the sum symbol as text in a cell.
In the macro, I record "insert, symbol", double-click the sum symbol, click
"insert", click"close",enter, then "stop recording".
The sum symbol correctly displays when the macro is created, but when I run
it again it always displays a "?".
I know that I must be making a very simple mistake here...can someone save
me from my stupidity?
Thanks,

Pete_UK

Macro to insert a symbol
 
Using the Character Map (in System Tools), the Sigma character is
available as U+03A3 on the numeric keypad. This might be an alternative
way of getting the character into your sheet - it looks like * S * on
these newsgroups - you might want to embolden it and increase the font
size.

Hope this helps.

Pete


Pete_UK

Macro to insert a symbol
 
I put the sigma character between the asterisks, and it looked fine as
I typed in the response above, but obviously it only displays here as
an S.

Pete


Gary''s Student

Macro to insert a symbol
 
Pete_UK is correct.

If you still want a VBA solution, then consider:

Sub sigma_to_cell()
Selection.Font.Name = "Symbol"
Selection.Value = "S"
End Sub


This will sigma-fy all the cells you have selected.
--
Gary's Student


"slovak" wrote:

I am trying to write a mini macro to insert the sum symbol as text in a cell.
In the macro, I record "insert, symbol", double-click the sum symbol, click
"insert", click"close",enter, then "stop recording".
The sum symbol correctly displays when the macro is created, but when I run
it again it always displays a "?".
I know that I must be making a very simple mistake here...can someone save
me from my stupidity?
Thanks,


slovak

Macro to insert a symbol
 
Pete, Thank you for your response, but before I could try your method someone
suggested that I include the symbol in a blank workbook and set my macro to
access that workbook, select the cell containing the symbol, copy and paste
special into my destination workbook. This worked.
Thanks again.
slovak

"Pete_UK" wrote:

Using the Character Map (in System Tools), the Sigma character is
available as U+03A3 on the numeric keypad. This might be an alternative
way of getting the character into your sheet - it looks like * S * on
these newsgroups - you might want to embolden it and increase the font
size.

Hope this helps.

Pete




All times are GMT +1. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com