Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default how to know be button in activecell



i want to know wheter is be or not a button in specific cell using vba.

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to know be button in activecell


Hello X toal,

Here is a macro that checks if the Active Cell is covered partially or
totally by a Shape object or Active X control (OLE object).

Sub IsCellCovered()

Dim Shp
Dim ShpRng As Range

For Each Shp In ActiveSheet.Shapes
Set ShpRng = Range(Shp.TopLeftCell, Shp.BottomRightCell)
If Not Application.Intersect(ShpRng, ActiveCell) Is Nothing =
True Then
MsgBox Shp.Name & " is covering part or all of the cell " &
ActiveCell.Address
Exit Sub
End If
Next Shp

End Sub

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=502736

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default how to know be button in activecell

Check the TopLeftCell property

Tim

--
Tim Williams
Palo Alto, CA


"x taol" wrote in message
...


i want to know wheter is be or not a button in specific cell using vba.

*** Sent via Developersdex http://www.developersdex.com ***



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
If activecell.column = variable then activecell,offset (0,1) Battykoda via OfficeKB.com Excel Discussion (Misc queries) 1 October 2nd 07 08:05 PM
Name the ActiveCell Vikxcel Excel Programming 1 October 19th 05 01:37 AM
activecell slikity Excel Programming 7 December 13th 04 11:59 AM
use of activecell inquirer Excel Programming 8 May 16th 04 06:39 AM
how to set activecell? ljb[_2_] Excel Programming 2 November 18th 03 04:49 PM


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