Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
slovak
 
Posts: n/a
Default 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,
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Pete_UK
 
Posts: n/a
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.newusers
Pete_UK
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Gary''s Student
 
Posts: n/a
Default 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,

  #5   Report Post  
Posted to microsoft.public.excel.newusers
slovak
 
Posts: n/a
Default 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


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
asking again, macro to insert rows Luke Excel Worksheet Functions 12 September 18th 05 07:32 PM
How do I insert a prompt into an Excel macro? TangoHammer Excel Discussion (Misc queries) 1 August 4th 05 10:31 PM
Insert macro into formula Paul Excel Worksheet Functions 1 May 12th 05 09:25 PM
How do I insert the date using a macro tara0801 Excel Discussion (Misc queries) 4 February 10th 05 10:09 PM
Challenging Charting C TO Charts and Charting in Excel 0 January 17th 05 07:57 PM


All times are GMT +1. The time now is 08:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"