+ Reply to Thread
Results 1 to 9 of 9

Generate csv file from excel

  1. #1
    Registered User
    Join Date
    09-12-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    8

    Generate csv file from excel

    Experts, Can you please help

    I have a file with 4 columns and i need to generate csv file

    Current Time Calls Wait Calls Ans Avg Wait
    11/19/2014 23:16:03 1 2 3

    On clicking a button it should refresh the excel (F9) and then generate a csv file.

    There is always only 1 row.
    This row has to be added to the csv, i.e. now when i click generate csv it should generate csv with 1 row, and after say 10 secs when i click generate again it should add the row to the existing csv, so csv will now have 2 records.

    attached the file.

    Appreciate your help.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Generate csv file from excel

    Hi Raju, Have a look at the attached, Try to click button and let me know......



    Regards
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-12-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Generate csv file from excel

    Naveen,
    Thanks a lot!

    This works much better than what i expected, however can you help me with adding a button that will generate a csv file with rows A1:D7, and a button that will reset this excel.

    and if that csv already exists in the folder, its should overwrite.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Generate csv file from excel

    Here you go.....

    Just you need to replace D:\naveen\ in the code with your path where you want this to be saved...

    you can edit the code with ALT+F11
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-12-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Generate csv file from excel

    It works like a charm!

    Thanks a lot!

  6. #6
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Generate csv file from excel

    Glad it helped you....



    1. If your question is resolved, mark it SOLVED using the thread tools
    2. Click on the star if you think someone helped you

  7. #7
    Registered User
    Join Date
    09-12-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Generate csv file from excel

    Naveen,
    out put file is adding blank rows, can you please help me fixing this.

    Current Time,Calls Wait,Calls Ans,Avg Wait,Rand,
    11/23/2014 11:44:54,1,2,3,0.130594494,
    11/23/2014 11:44:54,5,8,12,0.523485452,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,
    ,,,,,

  8. #8
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Generate csv file from excel

    Try this... attached...
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-12-2010
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Generate csv file from excel

    Thanks Naveen!

+ 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. Use Excel to generate a text file
    By julius.nkemdiche in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-20-2013, 07:30 PM
  2. Dynamically Generate graph in an excel file from a .csv file [URGENT]
    By pushkarjajoria in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2013, 06:51 AM
  3. generate word file from excel
    By memotronic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-23-2005, 02:25 PM
  4. How can generate an executable file from Excel?
    By Ofigomez in forum Excel General
    Replies: 4
    Last Post: 10-25-2005, 09:05 AM
  5. Problem using ASP with XML to Generate Multisheet Excel file
    By dabi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-26-2005, 04:06 PM

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