Hi,
I want to run a Shell command to open lots of files.
I can get the basic command working, but I want to open a lot of different files and am seeing if there is a way to save time by having a variable input, rather than having 1000 different shell lines with IF statements.
So...
Instead of
If possible I want to generate 3 variables based on cells A1, A2 and A3, and have one shell command.
So, let
A1 = documents
A2 = tester
A3 = example1.txt
The command line would now be:
and would open files from different directories based on inputs.
Is there any way to do this, or, as I imagine, the code must be explicit as it just dumps whatever you write into dos.
If thats the case, I thought a work around might be to enter
Into, say, B1, and then try and execute the formula in B1.
Can this be done?
Im still pretty new to VBA, so Im sorry if this is an obvious problem, or obviously impossible to solve.
Any help appreciated.
Thanks,
Bookmarks