ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to delete tables with a certain string in the name? (https://www.excelbanter.com/excel-programming/345732-how-delete-tables-certain-string-name.html)

Henrootje

How to delete tables with a certain string in the name?
 
I would like to delete all tables in my database that have the string
'_Importfouten' in their name.

Any suggestions no how to do this?

TIA,

Henro


tiah

How to delete tables with a certain string in the name?
 
This is Excel newsgroup. where is your database ?


Henrootje

How to delete tables with a certain string in the name?
 
Oops, wrong newsgroup! Very sorry!! [blush]


Tom Ogilvy

How to delete tables with a certain string in the name?
 
Dim nm as Name
for each nm in Thisworkbook.Names
if instr(1,nm.Name,"_Improtfouten",vbTextCompare) then
nm.RefersToRange.Clear
end if
Next

Perhaps.

--
Regards,
Tom Ogilvy


"Henrootje" wrote in message
oups.com...
I would like to delete all tables in my database that have the string
'_Importfouten' in their name.

Any suggestions no how to do this?

TIA,

Henro





All times are GMT +1. The time now is 05:13 PM.

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