+ Reply to Thread
Results 1 to 5 of 5

deleting names associated with connections to CSV files

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Question deleting names associated with connections to CSV files

    Whenever I create data connections to CSV files, excel also inserts names (can see these if go to Formulas tab > Name Manager) for each range where the data was inserted. Is there a way to also delete these names with VBA? Right now I use this code, but it only cuts the connections and leaves the names intact.
    Please Login or Register  to view this content.
    Thanks
    You either quit or become really good at it. There are no other choices.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: deleting names associated with connections to CSV files

    Hi,

    If you are not using the 'Name Manager', it can easily be done as follows:
    Please Login or Register  to view this content.
    To delete a specific 'Named Range':
    Please Login or Register  to view this content.
    If you are using the 'Name Manager', there must be a way to identify the 'Named Ranges' that you want to eliminate.

    Lewis
    Last edited by LJMetzger; 01-31-2016 at 05:39 PM.

  3. #3
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: deleting names associated with connections to CSV files

    Great! Thanks for the code, Lewis. Yes, each name that I wanted to delete started with the same five letters, so I did:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: deleting names associated with connections to CSV files

    Thanks again for the rep points. When you have a naming convention like you do, it makes life a lot easier. Good job.

  5. #5
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: deleting names associated with connections to CSV files

    You're welcome. Thanks - still learning all that VB can do, but getting a bit better every day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. deleting connections to CSV files
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2015, 01:11 PM
  2. Text files deleting top 4 rows from multiple files at once
    By jannerman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2015, 09:20 AM
  3. Replies: 2
    Last Post: 08-18-2014, 08:39 PM
  4. Excel Names in column to text files names to folder
    By excelaron in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 07:22 PM
  5. Deleting Data Connections
    By dssrun209 in forum Excel General
    Replies: 0
    Last Post: 06-20-2012, 05:00 PM
  6. Deleting Connections in a Workbook
    By SDruley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2009, 01:19 PM
  7. Replies: 1
    Last Post: 06-09-2009, 03:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1