Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Build and execute dynamic instructions

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?
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Build and execute dynamic instructions

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\sh eet!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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Print Instructions GatorGirl Excel Worksheet Functions 3 June 19th 08 03:56 PM
is there a way to do 4 instructions with one macro des-sa[_2_] Excel Discussion (Misc queries) 1 May 14th 08 09:37 PM
displaying worksheet instructions Steve Excel Discussion (Misc queries) 2 December 28th 07 05:45 PM
click on cell and get instructions, how do you set it up? Ellie05il Excel Discussion (Misc queries) 2 September 13th 07 03:39 PM
How can I create customized help or instructions? Uninformed Excel Discussion (Misc queries) 1 March 22nd 05 07:09 PM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"