Closed Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: using VB with excel

  1. #1
    renoald is offline Newbie
    Join Date
    Sep 2008
    Posts
    8
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    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

  4. #3
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    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..
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  5. #4
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    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

  6. #5
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: using VB with excel

    He could, but it sounds like it's not what he really wants
    Up to him
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  7. #6
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    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

  8. #7
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    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
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  9. #8
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    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

  10. #9
    Join Date
    Jul 2008
    Location
    Somewhere that is shorter to write than "In the gloomy shadows of my personal namespace"
    Posts
    10,725
    Blog Entries
    2
    Rep Power
    90

    Re: using VB with excel

    I don't know what he wants...? He tell us..
    Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  11. #10
    Join Date
    Mar 2008
    Location
    The North Pole
    Posts
    13,174
    Blog Entries
    13
    Rep Power
    114

    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

Closed Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel 2007 and excel 2010
    By secondrate in forum Visual Basic Programming
    Replies: 1
    Last Post: 06-16-2010, 04:49 AM
  2. add to an excel sheet
    By lordwittie in forum Visual Basic Programming
    Replies: 5
    Last Post: 04-05-2010, 04:18 AM
  3. Import form Excel, filtr, export to excel
    By seatcordobawrc in forum Pascal and Delphi
    Replies: 1
    Last Post: 03-30-2010, 02:30 PM
  4. C# using excel
    By Siten0308 in forum C# Programming
    Replies: 2
    Last Post: 01-21-2010, 02:49 PM
  5. Fun with Excel
    By Xystus777 in forum C# Programming
    Replies: 0
    Last Post: 12-04-2008, 07:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

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