PC Review


Reply
Thread Tools Rate Thread

Delete ALL ListObjects

 
 
QB
Guest
Posts: n/a
 
      6th Oct 2009
When I import an XML file in Excel 2003 it creates a listobject

'List1'

but in Excel 2007 it creates a listobject

'Table1'

An in my code I unlist the list but since the name changes
(ActiveSheet.ListObjects("Table1").Unlist),..., I don't know how to handle
it. As such, how can I made a more generic code to unlist any and an
listobject found.

Thank you,

QB
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      6th Oct 2009
If you active cell is in the Table you can use

ActiveCell.ListObject.Unlist



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"QB" <(E-Mail Removed)> wrote in message news:B5A7FB65-FD01-4A24-9E5F-(E-Mail Removed)...
> When I import an XML file in Excel 2003 it creates a listobject
>
> 'List1'
>
> but in Excel 2007 it creates a listobject
>
> 'Table1'
>
> An in my code I unlist the list but since the name changes
> (ActiveSheet.ListObjects("Table1").Unlist),..., I don't know how to handle
> it. As such, how can I made a more generic code to unlist any and an
> listobject found.
>
> Thank you,
>
> QB

 
Reply With Quote
 
QB
Guest
Posts: n/a
 
      6th Oct 2009
Found one possible solution

http://www.microsoft.com/office/comm...4-f339561d1a29

QB





"QB" wrote:

> When I import an XML file in Excel 2003 it creates a listobject
>
> 'List1'
>
> but in Excel 2007 it creates a listobject
>
> 'Table1'
>
> An in my code I unlist the list but since the name changes
> (ActiveSheet.ListObjects("Table1").Unlist),..., I don't know how to handle
> it. As such, how can I made a more generic code to unlist any and an
> listobject found.
>
> Thank you,
>
> QB

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ListObjects.Add Question Steve Haack Microsoft Excel Programming 3 4th Jun 2009 05:53 PM
If ActiveSheet.ListObjects = True ... Not Working ryguy7272 Microsoft Excel Programming 2 2nd Apr 2008 08:14 PM
ListObjects.Add error =?Utf-8?B?ZG91Zw==?= Microsoft Excel Programming 0 6th Jul 2006 03:41 PM
Excel 2003 ListObjects Problem Frederick Chow Microsoft Excel Programming 3 1st Mar 2006 04:59 PM
listobjects and querytables S. Parker Microsoft Excel Programming 0 14th Nov 2005 09:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:54 PM.