LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default How to delete a row and the contained <forms checkbox?

You have to run through the collection of the shape that you want
(or all shapes) and test for say the upper left corner of a shape being within
the selected range of cells. see DelShapesSel in
http://www.mvps.org/dmcritchie/excel/shapes.htm

you can use the first macro getshapeproc to determine what shapes
you have and where they are in case you have to restrict yourself to a
particular kind of shape.
---HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htmSearch Page: http://www.mvps.org/dmcritchie/excel/search.htm "pkohler"
wrote in message ...

So I am trying to write some formating macro's.

One of them is to delete entire rows, but the rows each contain a
Checkbox. I have a snippit of code to remove checkboxes:

Dim chbx As String
Dim strt, fin As Integer
strt = 734
fin = 1790

For i = strt To fin
chbx = "Check Box " & i
On Error Resume Next
ActiveSheet.Shapes(chbx).Select
Selection.Cut
Next i

The problem that I have is, that I do not know how to obtain the start
and end number for the checkboxes in the range I want to delete. Is
there a method to delete an entire row and the objects within it?

Thanks,

Phil


--
pkohler
------------------------------------------------------------------------
pkohler's Profile: http://www.excelforum.com/member.php...fo&userid=8919
View this thread: http://www.excelforum.com/showthread...hreadid=385700



 
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
Forms Checkbox Jo Excel Discussion (Misc queries) 2 February 19th 07 04:01 AM
Click event for checkbox from Forms toolbar Carolyn Excel Discussion (Misc queries) 6 September 11th 06 08:16 PM
How do I resize the actual Forms checkbox Nel Excel Discussion (Misc queries) 1 March 22nd 06 09:23 PM
EXCEL FORMS CHECKBOX BLUOVAL Excel Worksheet Functions 3 October 17th 05 06:40 PM
Error in code to Check Forms Checkbox Steph[_3_] Excel Programming 3 April 2nd 04 04:15 PM


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