Marlett Font query...(THIS TOPIC IS NOW CLOSED OUT)

Jak

Well-known Member
Joined
Apr 5, 2002
Messages
833
I have a worksheet with a named range "Marlett" that occupies the following:

='1 - 25'!$E$21:$AF$45

'1 - 25' is the tab name of the sheet.

I have set the cells to Marlett font. If I enter the letter "A" in any cell in this range it changes to a tick. What I need help with is using the sheetchange event to allow a user to single left click a cell and the tick is entered instead of typing the letter "A". A double left click would blank the cell.

All help welcomed
This message was edited by Jak on 2003-01-18 04:38
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi Jak,

Hope this will do what you want.

<pre>
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Isect As Range

If Target.count > 1 Then Exit Sub

Set Isect = Application.Intersect(Target, Range("Marlett"))
If Not Isect Is Nothing Then Target = ""

Set Isect = Nothing

End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Isect As Range

If Target.count > 1 Then Exit Sub

Set Isect = Application.Intersect(Target, Range("Marlett"))
If Not Isect Is Nothing Then Target = "A"
Set Isect = Nothing

End Sub

</pre>
 
Upvote 0
Hi rikrak

I added the code provided to the workbook. I clicked a blank cell within the range and a tick appears. When I double click a cell with a tick it clears. Excellent.

Many thanks
This message was edited by Jak on 2002-10-06 06:31
 
Upvote 0

Forum statistics

Threads
1,221,240
Messages
6,158,722
Members
451,512
Latest member
aimarhu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top