+ Reply to Thread
Results 1 to 7 of 7

Export from excell to .inp file by use of a button

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Tauranga, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    4

    Export from excell to .inp file by use of a button

    Hello

    There was a thread similar to this in 2006, but when i tried it it didn't come out as I needed it to or did it show you how to set up a button for it.

    This was the answer for 2006 which was creating a .txt file

    Please Login or Register  to view this content.
    I changed so the output was a .inp file and the result was close but not close enough

    the text in my excell file was similar to this:
    Please Login or Register  to view this content.

    The addition of the """ is the issue and the program I then input this into doesn't accept them. Can someone please tell me how to create this export to .inp without added the """ and also how can i set this up as a button

    Thanks

    Bryce
    Last edited by Leith Ross; 08-01-2013 at 09:46 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Export from excell to .inp file by use of a button

    Hello Bryce H467,

    Welcome to the Forum!

    Can you post the workbook? It will help in creating a working solution.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Picture
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    Tauranga, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Export from excell to .inp file by use of a button

    Hello and thanks for the welcome.

    I have now attached my workbook to help you understand what i am trying to do

    Cheers

    Bryce
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Export from excell to .inp file by use of a button

    Hello Bryce,

    This macro will create a CSV from cells on the worksheet in column "A" starting in row 1. The end of the range is automatically found.

    Change the FilePath and Filename variables to match what you will using. Paste this code into a VBA Module in your workbook. You can then attach this macro to the button. If you have any problems, let me know.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-01-2013
    Location
    Tauranga, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Export from excell to .inp file by use of a button

    You are a Legend Leith, Thats awesome!!

    Thanks

    Bryce

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Export from excell to .inp file by use of a button

    Hello Bryce,

    You're welcome. I take it the macro worked correctly?

  7. #7
    Registered User
    Join Date
    08-01-2013
    Location
    Tauranga, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Export from excell to .inp file by use of a button

    Yeah no problem at all, just what I was after

    Thanks again

    Bryce

+ 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. Export to pdf command button save as file name question
    By Miamited in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2012, 02:33 PM
  2. Excel 2007 : Button on Workbook to export data to Text file?
    By NewYears1978 in forum Excel General
    Replies: 3
    Last Post: 03-30-2010, 05:48 PM
  3. export excell data as xml
    By moital in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] export excell data as xml
    By moital in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. export excell data as xml
    By moital in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03: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