Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default list box DELETION during a macro

Hi all...
I have a macro which inserts a new "row" with a list box at the beginning of
the row. The code is fine

I need to have the user be able to DELETE "extra" rows if needed. The row
delete is no problem of course, but I'm struggling with getting the list box
at the beginning of the row deleted. Selecting the list box during the macro
and deleting it gives me specific code for the list box NUMBER (Like "Listbox
199"). I need the macro to delete whatever listbox happens to be on the row
(not specific to a number).

I suspect there's a way to do this...
Is there a way to select the cells/row as well as a generic list box at the
same time for deleting?

THANKS for any help! Excel 2003

Chris
--
Chris M
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default list box DELETION during a macro

You would have to loop through the shapes collection and check the
topleftcell and lowerRightcell properties to determine which one to delete.

--
Regards,
Tom Ogilvy


"Chris M" wrote:

Hi all...
I have a macro which inserts a new "row" with a list box at the beginning of
the row. The code is fine

I need to have the user be able to DELETE "extra" rows if needed. The row
delete is no problem of course, but I'm struggling with getting the list box
at the beginning of the row deleted. Selecting the list box during the macro
and deleting it gives me specific code for the list box NUMBER (Like "Listbox
199"). I need the macro to delete whatever listbox happens to be on the row
(not specific to a number).

I suspect there's a way to do this...
Is there a way to select the cells/row as well as a generic list box at the
same time for deleting?

THANKS for any help! Excel 2003

Chris
--
Chris M

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
Macro deletion Patricia D[_2_] Excel Discussion (Misc queries) 1 July 19th 09 04:58 AM
How can I activate a macro of auto deletion with respect to date G.Shankar New Users to Excel 1 May 31st 08 01:30 PM
How to create a macro that compares a list to another list Rampa New Users to Excel 1 January 13th 05 01:15 PM
Macro Deletion/Removal Pat Davis Excel Programming 1 May 26th 04 03:40 PM
deletion macro Bob[_31_] Excel Programming 4 August 27th 03 10:13 PM


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