Results 1 to 2 of 2

Thread: Looking for the standard MS FileOpenDialog to search for and find files

  1. #1
    Login to Give a bone
    0

    Default Looking for the standard MS FileOpenDialog to search for and find files

    Hi the following bit of code operates in several MS VBA implementations (ACCESS, Excel, Visio) Is there a similar functionality in AutoCad VBA? If so, can you point me to a spot where I can grab it? Thanks.

    Code:
    Dim objDialog As Object
    Const msoFileDialogFilePicker As Long = 3
        Set objDialog = Application.FileDialog(msoFileDialogFilePicker)
        
        With objDialog
            .AllowMultiSelect = False
            .Filters.Clear
            .Filters.Add "File type", "*.JSON"
            .Title = "Select Design Input File"
            .show
            If .SelectedItems.Count = 0 Then
                Exit Sub
                Else
                sFilePathName = .SelectedItems(1)
                End If
            End With

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,577
    Login to Give a bone
    0

    Default Re: Looking for the standard MS FileOpenDialog to search for and find files

    You can search this forum for FileDialogs. I also have a bas file here.
    C:> ED WORKING....


    LinkedIn

Similar Threads

  1. Search, Find, and/or Replace within labels
    By Wish List System in forum Civil 3D Wish List
    Replies: 1
    Last Post: 2017-10-26, 01:37 PM
  2. AUGI Forums Search facility now uses MySQL Full Text Search
    By Mike.Perry in forum Forum Tips & Tricks (Read only)
    Replies: 0
    Last Post: 2008-01-28, 09:36 AM
  3. Replies: 2
    Last Post: 2006-04-28, 11:17 AM
  4. Windows XP - Make Built-in Windows Search find text in text files with Unknown Extensions
    By Mike.Perry in forum Operating Systems
    Replies: 0
    Last Post: 2005-07-17, 11:53 PM

Tags for this Thread

Posting Permissions

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