|
-
Jun 27th, 2007, 03:09 AM
#1
Thread Starter
New Member
import data in Excel
Hello,
The command button I click on allows me to copy or import my data into a spread sheet in Excel.
I only know how to do this however for only a line (See example below). What I do not know is what line of code to write to import my data for a new date to the next line.
Example:
Date: B1 B2
26/06/2007 1 2
? ? ?
Literally, i am only able to import or copy a line and then I am blocked.
I would appreciate if you could explain how to do this.
Note: I am using visual basic 6 from my own computer.
Thanks
Bruno.
-
Jun 27th, 2007, 03:46 AM
#2
Re: import data in Excel
Hi
This a vb.net forum , mods will move your posts.
Search excel automation vb at google
"The dark side clouds everything. Impossible to see the future is."
-
Jun 27th, 2007, 04:12 AM
#3
Re: import data in Excel
Thread Moved.
Check my Office FAQ (link in my signature).
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 
-
Jun 27th, 2007, 09:19 AM
#4
Thread Starter
New Member
Re: import data in Excel
Hello,
Thank you for the line of code regarding the transfer of data between useform and excel.
However I would like to be able to retain each line of data each time I transfer the data form the userform to the office application excel.
Currently, each time I transfer the data, it replaces the last set of data that I transferred previously.
Is there a way of overcoming this.
Thanks.
-
Jun 27th, 2007, 10:39 AM
#5
Re: import data in Excel
Change the row to which you're saving it.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
-
Jun 27th, 2007, 02:35 PM
#6
Re: import data in Excel
Are you doing this in Excels VBA or using VB 6 or some other language?
Can you post your code?
Ps, thanks
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 
-
Jun 28th, 2007, 04:08 AM
#7
Re: import data in Excel
Ok, so its VB 6 but it will be easier to see what code you have so far.
Also, my Office FAQ may help in some areas of your needs for this.
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
|