Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2007, 03:51 AM
Authorized User
 
Join Date: Jun 2007
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ivanlaw Send a message via Yahoo to ivanlaw
Default Urgent: Excel and Vb 6.0

Hi Pro,
May I know that what coding should I write for display a excel file by using vb code?Please teach me or give some example for me.
Waiting for your advices...

Thank you.
 
Old October 12th, 2007, 05:12 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi ivanlaw

Do you want to show the Excel Sheet on your userform or code?


If you want to show the Excel you have used in the program then set the Application.Visible option to True

Cheers
Shasur

http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old October 17th, 2007, 10:08 PM
Authorized User
 
Join Date: Jun 2007
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ivanlaw Send a message via Yahoo to ivanlaw
Default

Hi Shasur,

Thanks for your helping.It is works.

 
Old October 19th, 2007, 10:38 PM
Authorized User
 
Join Date: Jun 2007
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ivanlaw Send a message via Yahoo to ivanlaw
Default

Hi there,

I got one more thing need to ask which is how to copy a file to another place by using vb coding???
Please teach me...--'
Waiting for your advices

Thank you.

 
Old October 20th, 2007, 10:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. there is a copyfile function you can use to do it... of you can use the filesystemobject...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old October 22nd, 2007, 03:34 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Here are the methods you can use

Dim FSO As FileSystemObject

' You need to add Microsoft Scripting Runtime library to access the FileSystemObject
Set FSO = New FileSystemObject


' Copy without overwriting files
FSO.CopyFile "c:\temp.xls", "d:\temp.xls", False

' Copy with overwriting files
FSO.CopyFile "c:\temp.xls", "d:\temp.xls", True

' Without using File System Object
FileCopy "c:\temp.xls", "d:\temp.xls"


http://www.dotnetdud.blogspot.com

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
export to excel (Urgent) balesh.mind ASP.NET 2.0 Professional 1 August 30th, 2008 09:30 AM
Urgent :VB ivanlaw Pro VB Databases 19 August 31st, 2007 08:09 PM
export excel file ( format is changed ) urgent palanivel jayanthi ASP.NET 1.0 and 1.1 Professional 1 March 12th, 2007 05:32 PM
export excel file ( format is changed ) urgent palanivel jayanthi ASP.NET 1.0 and 1.1 Basics 1 March 12th, 2007 05:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.