Consulting

Results 1 to 4 of 4

Thread: How to create a macro that will produce a csv file from a button

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

    How to create a macro that will produce a csv file from a button

    Hi vba experts,

    I would like to know if it is possible to create a csv macro enabled button using vba. If so, how? And would you have sample code of how this can be done.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The answer is undoubtedly, yes!

    But as for an example, more details please. What are you trying to do, inputs, outputs, constraints, etc.
    ____________________________________________
    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 have a csv file (eXAMPLE below)

    (csv file) R: \\cluster2\Dept Data\Migration Data\NOMSALES Output.csv


    I would like to enable a macro to run from a button to open that file within a workbook

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Just open it within Excel with the macro recorder on, it will create your code.
    ____________________________________________
    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

Posting Permissions

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