Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
W M
 
Posts: n/a
Default Use merged cells as checkbox

Bob Phillips provided a statement that allows a cell to be used as a
checkbox as follows:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1,A2")) Is Nothing Then
With Target
If .Value = "P" Then
.Value = ""
Else
.Value = "P"
.Font.Name = "Wingdings 2"
End If
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

Can this statement be modified to allow merged cells to be used as
checkboxes?


  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

See one reply at your first thread.

W M wrote:

Bob Phillips provided a statement that allows a cell to be used as a
checkbox as follows:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1,A2")) Is Nothing Then
With Target
If .Value = "P" Then
.Value = ""
Else
.Value = "P"
.Font.Name = "Wingdings 2"
End If
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

Can this statement be modified to allow merged cells to be used as
checkboxes?


--

Dave Peterson
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
Pasting into merged cells Jacques E. Bouchard Excel Discussion (Misc queries) 1 May 12th 05 03:27 AM
Charting of Merged Cells znb74 Excel Discussion (Misc queries) 0 April 15th 05 02:42 PM
Merged cells KimberlyC Excel Worksheet Functions 1 April 2nd 05 12:59 AM
How to sort merged cells Sort merged cells Excel Worksheet Functions 3 March 11th 05 04:07 PM
Auto fit merged cells Anson Excel Discussion (Misc queries) 1 December 20th 04 09:09 PM


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