|
-
Mar 7th, 2007, 10:06 PM
#1
Thread Starter
New Member
VB6 with excel file
I'm a new programer, i'm writing a visual basic 6 project,
but i can't control excel file data from visual basic 6 code project
please help me.
thank's
-
Mar 7th, 2007, 10:20 PM
#2
Frenzied Member
Re: VB6 with excel file
53050373;
Welcome to VBForums:
Unfortunately you posted your question in the wrong thread. This is the VB.Net thread.
Maybe you should mark this thread Resolved and make a new posting in the VB 6.0 section.
Or, maybe one of the Moderators will notice it and move it for you.
Good Luck
-
Mar 7th, 2007, 10:40 PM
#3
Lively Member
Re: VB6 with excel file
Code:
'Add Reference to Microsoft Excel Object Library
Dim App_QA As Excel.Application
Dim Wb_QA As Excel.Workbook
Dim maxrow as Integer
Set App_QA = New Excel.Application
Set Wb_QA = App_QA.Workbooks.Open("Full Path of The Excel WorkBook")
Wb_QA.Worksheets(Sheet1).Select
maxrow = Wb_QA.ActiveSheet.UsedRange.Rows.Count
'Now u can handle the Excel as v do it in VBA.
Hope This will give u an idea...
Rahul Yadav
If your problem has been solved then please mark the thread [RESOLVED].
If i have helped then please Rate my post 
-
Mar 8th, 2007, 12:13 AM
#4
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
|