Excel - Variables

Please post any questions regarding the program here.

Moderator: 2020vision

Excel - Variables

Postby alrodopial » Fri Dec 05, 2008 6:08 pm

Hi,
I download and store the source of a page in a variable lets say called "mydata".
How do i have to declare this variable so that it will be "valid,available" till the close of the workbook? I want to use it again and lets say make a search inside it few seconds later, using a new macro. I dont want to download the page again and create the "mydata" again.
Thanks
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby GaryRussell » Fri Dec 05, 2008 6:23 pm

Create a new module if your workbook does not already contain one and insert something like the following at the top of the module. It can then be referred to by any macro in your workbook.

Code: Select all
public mydata as string
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby alrodopial » Fri Dec 05, 2008 8:53 pm

Perfect.
Thanks
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

Users browsing this forum: Bing [Bot] and 37 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.