PC Review


Reply
Thread Tools Rate Thread

Build and execute dynamic instructions

 
 
Smitty
Guest
Posts: n/a
 
      24th Nov 2008
Is there a way I can create an instructuion that dynamically includes a file
name? For example, I have a number of formulas in a worksheet that calls for
data contained in cells in spreadsheet xxx in another workbook. Depending
upon the workbook I am provided I want to be able to substitute xxx with yyy
and execute the newly modified formula using the new workbook and worksheet
as input rather than that what was originally defined.

What I am trying to do is build forms that I store in a folder. The data on
the forms would be extracted and processed. I don't know the name of the
files (or how many I will be receiving) this month. Anybody got any thoughts
about how I might do this?
 
Reply With Quote
 
 
 
 
galimi
Guest
Posts: n/a
 
      24th Nov 2008
Smitty,

I have uploaded an example to http://www.nofavor.com/spreadsheets/xxx.zip.
It contains 3 files, master.xls, xxx.xls & yyy.xls. When you change the
value in cell B1 on the master.xls sheet to xxx or yyy, it will change the
formula in cell D1, essentially changing the reference point for your data.
--
http://www.ExcelHelp.us
(E-Mail Removed)
888-MY-ETHER ext. 01781474



"Smitty" wrote:

> Is there a way I can create an instructuion that dynamically includes a file
> name? For example, I have a number of formulas in a worksheet that calls for
> data contained in cells in spreadsheet xxx in another workbook. Depending
> upon the workbook I am provided I want to be able to substitute xxx with yyy
> and execute the newly modified formula using the new workbook and worksheet
> as input rather than that what was originally defined.
>
> What I am trying to do is build forms that I store in a folder. The data on
> the forms would be extracted and processed. I don't know the name of the
> files (or how many I will be receiving) this month. Anybody got any thoughts
> about how I might do this?

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      25th Nov 2008
Hi,

If the other workbook is going to be open when you want the formula to work
then you should look at =INDIRECT(A1) where A1 contains the location you
want to get the data from.

If the files are going to be closed you can use
=CHOOSE(A1,"path\file1\sheet!range","path\file2\sheet!range","path\file3\sheet!range",....)

And then in A1 you enter the number that indicates which path you want to
use 1,2,3,...

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Smitty" wrote:

> Is there a way I can create an instructuion that dynamically includes a file
> name? For example, I have a number of formulas in a worksheet that calls for
> data contained in cells in spreadsheet xxx in another workbook. Depending
> upon the workbook I am provided I want to be able to substitute xxx with yyy
> and execute the newly modified formula using the new workbook and worksheet
> as input rather than that what was originally defined.
>
> What I am trying to do is build forms that I store in a folder. The data on
> the forms would be extracted and processed. I don't know the name of the
> files (or how many I will be receiving) this month. Anybody got any thoughts
> about how I might do this?

 
Reply With Quote
 
Smitty
Guest
Posts: n/a
 
      25th Nov 2008
Galimi,

It worked fantastic. This will save me a ton of work each month.

Smitty

"galimi" wrote:

> Smitty,
>
> I have uploaded an example to http://www.nofavor.com/spreadsheets/xxx.zip.
> It contains 3 files, master.xls, xxx.xls & yyy.xls. When you change the
> value in cell B1 on the master.xls sheet to xxx or yyy, it will change the
> formula in cell D1, essentially changing the reference point for your data.
> --
> http://www.ExcelHelp.us
> (E-Mail Removed)
> 888-MY-ETHER ext. 01781474
>
>
>
> "Smitty" wrote:
>
> > Is there a way I can create an instructuion that dynamically includes a file
> > name? For example, I have a number of formulas in a worksheet that calls for
> > data contained in cells in spreadsheet xxx in another workbook. Depending
> > upon the workbook I am provided I want to be able to substitute xxx with yyy
> > and execute the newly modified formula using the new workbook and worksheet
> > as input rather than that what was originally defined.
> >
> > What I am trying to do is build forms that I store in a folder. The data on
> > the forms would be extracted and processed. I don't know the name of the
> > files (or how many I will be receiving) this month. Anybody got any thoughts
> > about how I might do this?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form.Load does not execute all instructions ?? Finn Stampe Mikkelsen Microsoft C# .NET 9 4th Jan 2011 12:36 AM
2010 WebDeployment after build don't execute Chuck Microsoft ASP .NET 4 12th Jul 2010 10:02 AM
Build and Execute Multiple Update Queries =?Utf-8?B?d2FkZXYx?= Microsoft Access VBA Modules 1 30th Sep 2004 08:32 PM
Make code not execute for a Debug build Tom Microsoft VB .NET 7 15th Jul 2004 06:37 PM
how can I execute a batch file during build time ? carrot Microsoft C# .NET 4 10th Feb 2004 03:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.