Macros in Excel. Help needed.

Discussion in 'Programming' started by itsmenancy, Jun 26, 2008.

  1. #1
    How to establish connection between macros and excel. How does excel works with VB. Help needed.:)
     
    itsmenancy, Jun 26, 2008 IP
  2. drax2006

    drax2006 Well-Known Member

    Messages:
    233
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    118
    #2
    Macros are built into Excel, depending on the version of excel - earlier one use vb script, later ones use full blown vb. You have a built in macro editor - try tools->macros->record do some stuff, save the macro and then look at the code. Lots of sources on the net to show how to do this.

    If you run VB/C# then you have access to the excel object via the excel object library and can treat excel like any other object from within your application. This is termed automation - and it can be done with all of the office products not just excel.

    Let me know if you need any more pointers
     
    drax2006, Jun 28, 2008 IP