View Single Post
 
Old 02-13-2012, 01:22 PM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 525
Jamal NUMAN is on a distinguished road
Lightbulb

Quote:
Originally Posted by Colin Legg View Post
Since you're using Excel 2010, you should probably change this line:
Code:
If Target.Cells.Count > 1 Then Exit Sub
To this:
Code:
If Target.Cells.CountLarge > 1 Then Exit Sub
Otherwise, if the user selected all of the cells on the sheet you will get a runtime overflow error.
Thank you Colin for the contribution.

i didn't find any problem with the code provided by zyzzyva57

please have a look on the attached screenshot. the code is working very well on the Excel 2010.

regards

Jamal
Attached Images
File Type: jpg Clip_91.jpg (129.8 KB, 17 views)
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank.
Reply With Quote