Results 1 to 2 of 2

Thread: Where can i learn excel & vba?

  1. #1

    Thread Starter
    Addicted Member Para80d's Avatar
    Join Date
    Oct 2003
    Location
    Denton, TX
    Posts
    160

    Question Where can i learn excel & vba?

    I'm a visual basic programmer, just never messed with excel. Now i need to up at work, gotta write some vb code for excel to get some information from SQL Server 2k and then make a report. But i don't know anything about programming for excel with vba.

    If someone out there could point me in the right direction, i'd appreciate it.
    C++/VB6&.NET/QBasic/HTML/PHP/MySQL/SQLServer2k

    I'm the guy your little brother looks a lot alike. Tell your mom i said thanks.

    naked in vegas

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    You should be able to find some examples here throughout the
    forums. If you record a macro in Excel and then view the VBA
    code that it recorded would be a good way to learn the methods,
    properties , and functions that Excel has to offer.

    Another thing is to automate Excel from VB.
    Add reference to MS Excel x.x
    VB Code:
    1. Private moXL As Excel.Application
    2.  
    3. Private Form1_Load()
    4.  
    5.     Set moXL = New Excel.Application
    6.     moXL.Visible = True
    7.  
    8. End Sub
    etc.
    Then you can retrieve the data from SQL using VB and then
    manipulate Excel to populate the spreadsheet with SQL data.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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