+ Reply to Thread
Results 1 to 4 of 4

Tweak my code please to import excel sheets.

  1. #1
    Registered User
    Join Date
    12-20-2008
    Location
    Arkansas
    MS-Off Ver
    2010
    Posts
    87

    Tweak my code please to import excel sheets.

    I'm running into a little trouble with this code. I have commented the trouble spot.
    Cell "B4" would be populated from an input box.
    The variations in "B4" could be up to 8, but may be as few as 1.

    Please Login or Register  to view this content.
    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tweak my code please to import excel sheets.

    Hi,

    Perhaps

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-20-2008
    Location
    Arkansas
    MS-Off Ver
    2010
    Posts
    87

    Re: Tweak my code please to import excel sheets.

    I have to have the "40X" portion of the entry. I have played with wildcard such as " *40X* " and seem to run into problems. I'm sure it's just a syntax mistake, but can't seem to find it.

    Keep in mind that there may only be one file to import "W40X".

    Maybe I need some error checking...???



    'do you think this would work???
    '************************************************************************
    Please Login or Register  to view this content.
    '************************************************************************
    Adding wildcards around the filename selected ???

    Please Login or Register  to view this content.
    creates a problem because the filenames would be a list of different names like this...

    W40X120.xls
    W40X90.xls
    WB40X120.xls
    WS40X90.xls

    etc.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Tweak my code please to import excel sheets.

    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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. Best way to 'tweak' my code?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2008, 10:10 AM
  2. tweak code for excel 2007
    By Duncan1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2007, 12:54 PM
  3. [SOLVED] Code Tweak
    By bodhisatvaofboogie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2006, 11:40 AM
  4. [SOLVED] Newby Needs minor tweak on this VBA Macro code for Excel
    By zulfer7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2006, 12:35 AM
  5. excel code tweak for outlook - confusing
    By periro16 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2005, 06:05 AM

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