|
-
Nov 5th, 2003, 04:26 PM
#1
Thread Starter
Addicted Member
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
-
Nov 6th, 2003, 05:16 PM
#2
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:
Private moXL As Excel.Application
Private Form1_Load()
Set moXL = New Excel.Application
moXL.Visible = True
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|