Results 1 to 6 of 6

Thread: Geting database output in excel file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2017
    Posts
    21

    Lightbulb Geting database output in excel file

    Dear all,

    As a part of the project I am working on, I have to create an application which will access companys DataWareHouse (I was given username and password and web address) and under criterias I select export data in excel file.

    As I am beginner with VBA, could you please tell me:
    1) If this is possible to be done with VisualBasic
    2) Recommend materials for start learning


    I was advanced VBA user, but 4 years ago, so I would like to take a course from beginning.

    I am looking forward for your ansvers!

    thanks in advance

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Geting database output in excel file

    I was advanced VBA user, but 4 years ago
    that is not so long

    If this is possible to be done with VisualBasic
    i would think quite possible, you could possibly do a web query into a table
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Geting database output in excel file

    Or use ADO connection and a predefined query to grab results, with a VBA loop to drop into excel plus format etc... if required.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  4. #4
    Wall Poster TysonLPrice's Avatar
    Join Date
    Sep 2002
    Location
    Columbus, Ohio
    Posts
    3,836

    Re: Geting database output in excel file

    Please remember next time...elections matter!

  5. #5
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,537

    Re: Geting database output in excel file

    Please don't create duplicate posts. It splits the answers and creates more confusion than it solves.
    Duplicate post: http://www.vbforums.com/showthread.p...-in-excel-file

    Now you have responses there and here. Those in this thread may not know what was posted in the other, and the posters in the other don't know what's here. You're going to get different sets of answers that may end up conflicting with each other, and when you try to resolve it, it will create more confusion.

    I've notified the mods, so the threads may end up getting merged.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,930

    Re: Geting database output in excel file

    Welcome to VBForums

    Duplicate threads merged - please post each question (or variation of it) only once. If you think you have posted in the wrong forum, click the "report" icon on the left of a post (or PM a moderator) to ask for it to be moved.

Posting Permissions

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



Click Here to Expand Forum to Full Width