Consulting

Results 1 to 9 of 9

Thread: creating a macro on a button to search for a file

  1. #1
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location

    creating a macro on a button to search for a file

    I was wondering if it was possible to create a macro to a button using the file \\Cluster2\Dept Data\Migration Data\NOMSALES.csv as a source and from that create a csv file that displayed sample data from the file \\Cluster2\Dept Data\Migration Data\NOMSALES Output.csv. In other words instead of the user going through a directory to open a file I would like the user to click on a button within a workbook and the data within the later file will automatically populate on the spreadsheet. Can this be done? If so what code can be written in a macro for this to be done?

    Also i would like to be an expert at vba access, excel and macros. Do you know of any really good books, websites and online courses where I can learn about producing complex macros to ideally produce high level functions?





    Thanks for your contributions

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Get your company to send you on a VBA course, then practice, practice, practice.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    I work freelance...

  4. #4
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    but you right about practise practise..VBA is such a wide area

  5. #5
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    Would you know of any in-depth online courses?

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The only good ones I know are the ones I do

    Seriously, I have looked at various course summaries, and they usually seem LCD type of stuff, aimed at getting various levels to a common, usually low, level of achievement. I think you want something more targetted, something that will show you more than just the basics (that you can probably get from t'interweb anyway).
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    your right...I've invested a bit on dvd's but the training only show you basic things like message boxes etc...whereas when I go into the industry my clients ask me to perform macros to search for files with a click of button...I almost look like a fish out of water - literally.lol I seriously would like to become a serious vba guru...i have a few books but those books only cover the surface...I find it so interesting when I consider a project that requires a high level of vba knowlegde but the courses on offer not that much..hence why i visit this forum and get advise from people who know what they are talking about

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Actually, VBA knowledge is a minor consideration, because VBA is Basic, and Basic is basic, there really is not much too it. Far more important is understanding the host object model, and being able to understand business requirements and translate these into a solution.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  9. #9
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    Yes, that's true!

Posting Permissions

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