Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Troublesome tester- Is clicking top left select all...how to codetrap this?

Hi all

How do I trap or stop user from clicking top left ...ie all cells

As it causes error on worksheet and stops all macros/ code running

Error message Application-defined or object-defined error (1004)

regards

George
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default Troublesome tester- Is clicking top left select all...how to code trap this?

Ggalla1779 wrote:

How do I trap or stop user from clicking top left ...ie all cells

As it causes error on worksheet and stops all macros/ code running

Error message Application-defined or object-defined error (1004)


You're solving the wrong problem. Rather than prevent the users from
selecting everything, why not try to figure out what's causing the error in
the first place?

--
I've come to realize tonight, my friend, the end of time is not so far away.
We cannot pray to save our lives.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Troublesome tester- Is clicking top left select all...how to codetrap this?

aha so grass hopper...DeNada is born

'Calling
If NamedRngIsDeNada("myRange") Then
Application.EnableEvents = True
Exit Sub
End If

Function NamedRngIsDeNada(sName As String) As Boolean
' Test for cleared Named Range
On Error Resume Next

NamedRngIsDeNada = Range(sName).Count < 0
NamedRngIsDeNada = Not NamedRngIsDeNada
Err.Clear
End Function

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
WHY DOES CLICKING A SECOND CELL SELECT ALL INBETWEEN ROSGEM Excel Discussion (Misc queries) 1 April 4th 09 12:40 AM
Help with troublesome .CSV fields! markpruett Excel Discussion (Misc queries) 3 March 4th 09 09:37 AM
Troublesome Code Dave Peterson Excel Programming 5 September 20th 06 01:01 AM
Macro finishes faster when left clicking during execution Martin[_21_] Excel Programming 1 January 10th 06 10:46 AM
aNOTHer troublesome equation Micayla Bergen Excel Discussion (Misc queries) 7 August 15th 05 03:28 AM


All times are GMT +1. The time now is 12:17 PM.

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"