+ Reply to Thread
Page 1 of 3
1 2 3 LastLast
Results 1 to 10 of 27

Thread: using VB with excel

  1. #1
    Newbie renoald is on a distinguished road
    Join Date
    Sep 2008
    Posts
    8

    Smile using VB with excel

    i am using Visual Basic 2005 express edition. I want to build a program that can be run to Excel.
    The condition like this:
    i)i have a set of value , when i click the button, excel will plot the graph by using the value.

    ii) i want to read the value from table in excel by using Visual basic , open the excel file and then read the value
    can vb2005 done with this?
    Please give me idea!

  2. #2
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    Re: using VB with excel

    You need to find out how to automate Excel. You add a reference to the COM library and then call upon the namespace, creating an ExcelApplication class and determining the methods to use from there, either the documentation or the IntelliSense.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  3. #3
    Code Warrior marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89's Avatar
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,164
    Blog Entries
    2

    Re: using VB with excel

    Um, sounds like you could look at VBA (Visual Basic for Applications)? Excel, Word etc already has inbuilt support for VB..

  4. #4
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    Re: using VB with excel

    He can still do it in VB2005 if he wishes, with API automation.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  5. #5
    Code Warrior marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89's Avatar
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,164
    Blog Entries
    2

    Re: using VB with excel

    He could, but it sounds like it's not what he really wants
    Up to him

  6. #6
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    Re: using VB with excel

    Quote Originally Posted by renoald View Post
    i am using Visual Basic 2005 express edition. I want to build a program that can be run to Excel.
    He clearly wants to use VB2005 and then access Excel. Therefore, VBA is out of the question.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  7. #7
    Code Warrior marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89's Avatar
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,164
    Blog Entries
    2

    Re: using VB with excel

    To me it sounded more like he wasn't aware of VBA and it's potential... If I was wrong, hell let him go mad with Automation/ActiveX or whatever approach he chooses

  8. #8
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    Re: using VB with excel

    He could use VBA if he wanted to, and write some macros, but there are security limitations involved, and he DEFINITELY wants to do it in a separate program, not just having to call macro functions.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

  9. #9
    Code Warrior marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89 is a glorious beacon of light marwex89's Avatar
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,164
    Blog Entries
    2

    Re: using VB with excel

    I don't know what he wants...? He tell us..

  10. #10
    Xav
    Xav is offline
    Code Slinger Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav has much to be proud of Xav's Avatar
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,210
    Blog Entries
    13

    Re: using VB with excel

    He did tell us. He told us he wants to use VB2005, VB.NET. He doesn't want to have to open the Excel document just to run the code. Otherwise, the code is pointless, he might as well just do it manually. Therefore, he wants to use VB2005.

    Quote Originally Posted by Jordan View Post
    Good members, like yourself, stick around and post for ages to come!
    Mr. Xav | Blog | Forums

+ Reply to Thread
Page 1 of 3
1 2 3 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: 09-29-2008, 05:17 PM
  2. export to excel problem with IPAddress in URL but working with localhost url
    By mustaque in forum ASP, ASP.NET and Coldfusion
    Replies: 5
    Last Post: 08-04-2008, 07:31 AM
  3. VB.Net & VB 6.0 Syntax's
    By travy92 in forum Visual Basic Programming
    Replies: 10
    Last Post: 09-20-2007, 04:34 PM
  4. Help on Excel sheets!!!!!!!!!
    By sania21 in forum Visual Basic Programming
    Replies: 2
    Last Post: 07-02-2007, 05:41 AM
  5. VB 6.0: Tutorial, Explaining the VB 6.0 GUI
    By TcM in forum VB Tutorials
    Replies: 1
    Last Post: 05-18-2007, 10:25 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts