Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Automatically input a symbol in a selected cell

I have a range of cells that when a cell is selected can a symbol be input in
that cell? and if selected again remove the symbol. Can this bee done?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Automatically input a symbol in a selected cell

Is this so you can see the selected cell better?

If yes, you may want to look at Chip Pearson's utility:
http://www.cpearson.com/excel/RowLiner.htm

Different, but similar.

mapesii wrote:

I have a range of cells that when a cell is selected can a symbol be input in
that cell? and if selected again remove the symbol. Can this bee done?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 206
Default Automatically input a symbol in a selected cell

Try something like this

It goes into the worksheet module, when you right click on the range
A1:A10 a check mark will appear or be removed from the selected cell.

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel
As Boolean)
If Not Intersect(Target, Range("A1:A10")) Is Nothing Then
Cancel = True
If Target < "a" Then
With Target.Font
.Name = "Webdings"
End With
Target.FormulaR1C1 = "a"
Else: Target = ""
End If
End If

End Sub

  #4   Report Post  
Member
 
Location: Sweden
Posts: 30
Default

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Row = 2 And Target.Column = 2 Then
        Sheet1.Cells(Target.Row, Target.Column).Value = "©"
    End If
End Sub
hope this helps...


Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com
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
Update Worksheet Name Base on Cell Input Automatically? Native Excel Discussion (Misc queries) 1 March 27th 08 03:26 PM
cell automatically deletes content if cell is selected LD Excel Discussion (Misc queries) 0 November 1st 07 04:45 PM
Code to Query SQL Server with a parameter value (entered into an Input Box), and have that value also display in a selected cell on a worksheet Doctorjones_md Excel Discussion (Misc queries) 3 June 27th 07 04:14 PM
Code to Query SQL Server with a parameter value (entered into an Input Box), and have that value also display in a selected cell on a worksheet Doctorjones_md Excel Worksheet Functions 3 June 27th 07 04:14 PM
Change Currency symbol dependant upon selected cell value Fred Excel Discussion (Misc queries) 3 March 23rd 05 11:57 AM


All times are GMT +1. The time now is 10:52 AM.

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"