Re: Can we use variables in XL macros?
- From: "Patrick Molloy" <patrick_molloy@xxxxxxxxxxx>
- Date: Tue, 2 Jun 2009 13:11:42 +0100
sure:
DIM sPath as String
sPath = "c:\windows\temp"
Shell sPath
"StargateFan" <IDon'tAcceptSpam@xxxxxxxxxxxxxx> wrote in message news:728a25lttp5imtag0pbk02b3n08g13jl1j@xxxxxxxxxx
I have little experience scripting generally, but have a lot with.
AutoIt, a freeware scripting language. One of the very cool features
is the way we can use variables to make life a whole lot easier, for
example.
;=======================
$Path = "c:\windows\temp"
;=======================
Shellexecute($Path)
The advantage of the above is that it's easy to make a script that you
just plug in the changing values at the top and then not touch the
content. This is a very simpe example, but sometimes things can get
pretty complicated and using variables in this manner really
simplifies things.
Is there a comparable system in Excel so that we can put all variables
at the top and leave the rest of the script to do the tasks?
Thanks! :oD
- References:
- Can we use variables in XL macros?
- From: StargateFan
- Can we use variables in XL macros?
- Prev by Date: Re: Dynamically Freeze Panes
- Next by Date: Re: I learned how to rename workbook without saving it
- Previous by thread: Can we use variables in XL macros?
- Next by thread: Re: Can we use variables in XL macros?
- Index(es):
Relevant Pages
|