Consulting

Results 1 to 2 of 2

Thread: how to export the data into .excel in VBA

  1. #1

    how to export the data into .excel in VBA

    Hi ,
    I am new to VBA , I want to export the data to a excel file .
    Ex ; I have an excel tool connected with database having customer inventory details , In the tool there are several options like 'Update', 'Insert' 'Print' etc ,I have the updated information in "print" module , but when I click on the 'print ' the invoices are getting printed, now I want to save the invoice data and export to .csv file at the same time on clicking the Print button.

    Any help ?

    Thanks
    Bittu

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Welcome to the forum!

    I don't know what the Excel "tool" is. So, I don't know how to modify it.

    Normally, one just saves a file or sheet to a CSV file. So, you will need a means to query your data to create a sheet of the pertinent data. Of course if you can do that, it can be easily just sent to another database format like CSV. ADO is one way to query data.

Posting Permissions

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