+ Reply to Thread
Results 1 to 4 of 4

ListBox Call to ignore blank cells

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    ListBox Call to ignore blank cells

    Please Login or Register  to view this content.
    I am attempting to attach a list of scanned training details to a Userform and use a Double_Click Event to open the pdf's with the following

    Please Login or Register  to view this content.
    Was working fine when I had an entry in the fields the listbox retrieved to make sure they loaded.

    When I left then blank because that record only had one pdf to list, the first code stopped because there was no entry. How can I ignore if it is blank??

    What would even be more preferable would be that I could list the pdf files contained in the individuals sub folder, any ideas??
    Last edited by nigelog; 05-12-2017 at 05:42 AM.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: ListBox Call to ignore blank cells

    What would even be more preferable would be that I could list the pdf files contained in the individuals sub folder...
    Assuming you do know the individuals sub-folder...

    Please Login or Register  to view this content.
    Call it using something like
    Please Login or Register  to view this content.
    Rather than just limiting the procedure code to PDFs, pass it in as the file mask - you may need to load a listbox with a different type of file later...

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: ListBox Call to ignore blank cells

    assuming you are referring to the double click event:

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: ListBox Call to ignore blank cells

    Thanks for the input

    Used a combination of both and works perfectly calling all pdf files

    Workbook attached for reference. Just change filepath
    Attached Files Attached Files

+ 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] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  2. Ignore blank cells
    By ACrossley1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-20-2015, 07:40 AM
  3. Ignore blank cells and truly blank cells in named range?
    By hschillig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2014, 02:56 PM
  4. Replies: 5
    Last Post: 05-18-2013, 07:49 PM
  5. How can I make a macro ignore blank cells? - Blank Cells have formulas
    By mz1161 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2013, 08:54 AM
  6. Ignore blank cells
    By Teacher in forum Excel General
    Replies: 13
    Last Post: 08-20-2011, 03:43 PM
  7. [SOLVED] how do you ignore blank cells
    By Kerry in forum Excel General
    Replies: 1
    Last Post: 02-16-2005, 10:42 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