I created a model but how can I run it with different data source file of the same structure?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
592
Office Version
  1. 365
Platform
  1. Windows
Hello


I created a model with the calculated columns, the dashboard etc.

How do I run the same model using different data files as sources which have the same structure, just additional or fewer rows?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi Excelos,
with "run the model" you probably mean: replace the data in your model-file with data from another file? I'm now assuming you have one table in your model where your "base data" resides and that those other data files have just that same "base data" layout, but with a different amount of rows. What you would probably manually do is empty your table, open the new data file, copy the data part and paste it into your model. After that, run the calculation and you should have an updated dashboard etc.
If that's your route, you could first do that manually while you're recording a macro and use that recorded macro to build some more VBA code to do that job for you automatically. When you have some code to look at, please do post it here (in CODE brackets).
Cheers,
Koen
 
Upvote 0
I actually created a new parameter and now it asks for a source file path when I open the template.

However, I would like that dialog box to offer a 'browse' button to locate a file locally or paste a url. Is it possible?
 
Upvote 0

Forum statistics

Threads
1,226,127
Messages
6,189,152
Members
453,526
Latest member
anyrandomtech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top