Results 1 to 3 of 3
  1. #1

    How to make ObjExcel a global?

    I create/open or save a objExcel within a function within a function, and then use the objExcel throughout my testing. How do I set up my excel objExcel to be global?
    Thx for the help ;-)

    see ya


  2. #2

    Re: How to make ObjExcel a global?

    Declare variable using <font color="red">'Dim'</font> in a functional library file (vbs,qlf,txt) and associate that file to your test.

    Dim objExcel


    Not sure, but you may use Enviroment varialbes too

    <font color="green">'To set</font>
    Environment("ExcelObject").Value = objExcel

    <font color="green">'To get</font>
    Set objExcel = Environment("ExcelObject").Value
    Chinta Praveen Kumar
    <font color="green">A SQL query walks into a bar. He approaches two tables and says, "Mind if I join you?"</font> [img]/images/graemlins/grin.gif[/img]

  3. #3

    Re: How to make ObjExcel a global?

    Also search for Singleton Pattern.

    Anshoo Arora
    Relevant Codes



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 05:34 PM.

Copyright BetaSoft Inc.