Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JLM JLM is offline
external usenet poster
 
Posts: 3
Default I want to double click a box and have an X inserted there?

I am setting up a cover sheet that I want to have the user double click a box
and have an X inserted in the box or a check. How do I complete this task?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default I want to double click a box and have an X inserted there?

What is a "box"? A cell?

You would need event code to achieve the double-click in a cell.

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
Target.Value = "a"
Target.Font.Name = "Marlett"
Cancel = True
End Sub

Might be easier to format the cell to Marlett font and just type an "a" to
return a checkmark and dispense with the double-clicking.


Gord Dibben MS Excel MVP

On Tue, 9 Oct 2007 12:49:02 -0700, JLM wrote:

I am setting up a cover sheet that I want to have the user double click a box
and have an X inserted in the box or a check. How do I complete this task?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JLM JLM is offline
external usenet poster
 
Posts: 3
Default I want to double click a box and have an X inserted there?

You are correct, I am using a cell with a border and I wish it to be filled
in when double clicking on the cell kind of like in word. I am using this
to create a pricing system and linking this to numerical data.

"Gord Dibben" wrote:

What is a "box"? A cell?

You would need event code to achieve the double-click in a cell.

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
Target.Value = "a"
Target.Font.Name = "Marlett"
Cancel = True
End Sub

Might be easier to format the cell to Marlett font and just type an "a" to
return a checkmark and dispense with the double-clicking.


Gord Dibben MS Excel MVP

On Tue, 9 Oct 2007 12:49:02 -0700, JLM wrote:

I am setting up a cover sheet that I want to have the user double click a box
and have an X inserted in the box or a check. How do I complete this task?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default I want to double click a box and have an X inserted there?

Then either of the methods I gave will enter a checkmark in the cell.

How you would link these to numeric data is another problem which I hope you
have solved.


Gord

On Tue, 9 Oct 2007 13:57:00 -0700, JLM wrote:

You are correct, I am using a cell with a border and I wish it to be filled
in when double clicking on the cell kind of like in word. I am using this
to create a pricing system and linking this to numerical data.

"Gord Dibben" wrote:

What is a "box"? A cell?

You would need event code to achieve the double-click in a cell.

Private Sub Worksheet_BeforeDoubleClick _
(ByVal Target As Range, Cancel As Boolean)
Target.Value = "a"
Target.Font.Name = "Marlett"
Cancel = True
End Sub

Might be easier to format the cell to Marlett font and just type an "a" to
return a checkmark and dispense with the double-clicking.


Gord Dibben MS Excel MVP

On Tue, 9 Oct 2007 12:49:02 -0700, JLM wrote:

I am setting up a cover sheet that I want to have the user double click a box
and have an X inserted in the box or a check. How do I complete this task?




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
double click lmb Excel Discussion (Misc queries) 4 September 6th 07 07:38 PM
Double click Anette Denmark Excel Discussion (Misc queries) 10 February 18th 07 04:24 PM
Disabling click and right-click on the Picture I inserted in an Excel document [email protected] Excel Worksheet Functions 1 June 2nd 06 09:13 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
Before Double-Click Jim May Excel Discussion (Misc queries) 2 December 18th 04 05:52 PM


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