ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Clear an XML Map of all content (https://www.excelbanter.com/excel-programming/360325-clear-xml-map-all-content.html)

DangerMouse[_3_]

Clear an XML Map of all content
 

Hi,

Is there a simple line of VB that can be used in a macro to delete al
records from an XML map?

Thn

--
DangerMous
-----------------------------------------------------------------------
DangerMouse's Profile: http://www.excelforum.com/member.php...fo&userid=2775
View this thread: http://www.excelforum.com/showthread.php?threadid=53805


martinitram

Clear an XML Map of all content
 
try this
Dim myListObject As ListObject
Set myListObject = ActiveSheet.ListObjects(1)
Dim q As Integer
For q = myListObject.ListRows.Count To 1 Step -1
myListObject.ListRows(q).Delete
Next q

"DangerMouse" wrote:


Hi,

Is there a simple line of VB that can be used in a macro to delete all
records from an XML map?

Thnx


--
DangerMouse
------------------------------------------------------------------------
DangerMouse's Profile: http://www.excelforum.com/member.php...o&userid=27755
View this thread: http://www.excelforum.com/showthread...hreadid=538053




All times are GMT +1. The time now is 11:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com