+ Reply to Thread
Results 1 to 6 of 6

Import dynamic filname

Hybrid View

  1. #1
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Import dynamic filname

    Perhaps a construction along these lines if you a checking a number of files in a folder?

    Dim FileName As String
    FileName = Dir("C:\tester\*.csv")
    Do While Len(FileName) > 0
       If Right(FileName, 11) = "_Future.csv" Then
    Your code goes here
       End If
        FileName = Dir
    Loop
    Alf
    Last edited by Alf; 11-01-2013 at 04:55 AM. Reason: fixed what I did wrong before.

+ 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. [SOLVED] Power Pivot SQL Data Import - How to update import filter
    By minnesotaart in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-29-2013, 12:39 PM
  2. Implementing TextFile import Delimiter settings on TXT Import VBA Script
    By Canuckle777 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-19-2013, 02:06 PM
  3. Macro that change filname i series if one already exists
    By Gamla kläder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2013, 02:52 AM
  4. Dynamic Import of External Data Depending on Date
    By jponte in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2009, 01:43 PM
  5. Dynamic Field Name when Import into Access
    By pickledmuffin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2008, 10:13 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