+ Reply to Thread
Results 1 to 5 of 5

Excel VBA .csv upload with wildcards.

  1. #1
    Registered User
    Join Date
    01-03-2020
    Location
    Luxembourg
    MS-Off Ver
    2013
    Posts
    4

    Excel VBA .csv upload with wildcards.

    Hi all,
    Iīve got a big problem which I canīt solve. So I have a folder with 3 .csv Files which change on a daily basis. I tried to automate a process in which
    the 3 Files got imported under each other in Excel under one worksheet. I tried a workaround with DATE1=Date-3 or -1 but then Iīve got problems with the working days/weekends.
    I tried to use * or ? as wildcards since the name of the file stays the same and only the date changes.
    It would be wonderful if somebody could help me with this
    Never the less I wish you all a wonderful weekend.
    P.S.: Does anybody have an idea how I can connect the different rows when for example A ends and B starts? Since my solution for e.g.B with Destination:=Range("$A$30001"))
    isnīt the most elegant.

    Please Login or Register  to view this content.
    Last edited by davesexcel; 01-03-2020 at 11:31 AM.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Excel VBA .csv upload with wildcards.

    It would help if you can upload sample csv file. That's representative of your actual csv, but desensitized.
    Along with how imported data should look like in your workbook.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    01-03-2020
    Location
    Luxembourg
    MS-Off Ver
    2013
    Posts
    4

    Re: Excel VBA .csv upload with wildcards.

    Thanks for the quick answer. But sorry canīt do due to sensitive data.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Excel VBA .csv upload with wildcards.

    As per banner up at the top. You can desensitize the sensitive data (i.e. replace with generic string, like UserName1, UserName2 etc).
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Excel VBA .csv upload with wildcards.

    Your first import is probably fine.

    For the 2nd and 3rd import destinations, something like this maybe:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Unable to upload files to upload center
    By GeekoMania in forum Office 365
    Replies: 0
    Last Post: 09-11-2013, 03:18 AM
  2. Help with Excel to HTML then Upload to FTP
    By Nick.123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-28-2012, 02:08 PM
  3. trying to upload from Excel to SQL Server
    By jpatel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-09-2011, 10:41 PM
  4. Upload files in excel
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-06-2011, 09:23 AM
  5. Upload Excel Workbook to PDA
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2009, 06:51 PM
  6. Excel upload to Access (VBA help)
    By Justin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-29-2005, 12:10 PM
  7. Upload files via ftp in excel
    By lotsbg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2005, 12:35 AM
  8. [SOLVED] Upload Excel to Access
    By Luis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-07-2005, 01:06 PM

Tags for this Thread

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