G
Guest
How would I go about programmatically importing an exported module from a file?
Thanks!
Thanks!
Thanks for the link. I think I found right after posting (always works that
way!)
What I'm trying to do:
I have have a planning model with many sheets and custom code that takes
into account many different variables. The basic structure is the same for
every company that uses it. But for each company we do a certain amount of
customizing. The problem I have run into is that whenever I find something
that needs to change I have to contact all the companies and individually
change all of their files.
What I think I need to do is make the excel workbook a sort of shell. I can
store all of the user-added data in a text file and when I make updates to
the shell I'll just have to send each company the new shell.
The only problem is that the shell won't contain any of the customization.
What I am thinking is that I will create a sort of installer package using
another excel workbook for each company that stays fairly static. When I
send out the updated shell it will know to look for the installer for the
customization and open and run the macros.
Do you know of a better way to go about doing this?
Thanks
Just to make sure I understand...
What would the add-in do? Would it be the shell or the customization?
The concern that I have is that oftentimes the customized portion is highly
sensitive information. Having had to crack into excel files before I don't
want to leave that open as a possibility. The customizations usually involve
extra worksheets that calculate specific items in the background that other
companies don't have.
I should add that the code, for the most part, is more static then the
formulas in the workbook. The customization isn't generally with the code
but with additional calculation requirements in the workbook itself.
I might be going about this the wrong way, but whenever I've done UDFs I've
had to trigger them with either an event procedure or a button. When I do
this I lose the ability for the user to undo previous actions, which is
something that is used a lot in the projection models to switch between
numbers (their pretty big and not much fun to write down everytime you want
to change).
That is why I let the workbook do all the calculating. Any thoughts?
Thanks for all the insight!
--
JNW
Dave Peterson said:But you may need code to put the results of the formulas where it's needed--or
not.
Sometimes, putting the calculation rules into a UDF may make it easier to
control things--but the downside is that UDFs are usually slower than worksheet
calcs.
Dave Peterson said:UDF's are functions that are placed in formulas in cells.
You can use something like:
=yourworkbookname.xls!myfunc(a1)
or if that workbook is an addin:
=myfunc(a1)
If your workbook is an addin, you'd use it just like a built in function.
I might be going about this the wrong way, but whenever I've done UDFs I've
had to trigger them with either an event procedure or a button. When I do
this I lose the ability for the user to undo previous actions, which is
something that is used a lot in the projection models to switch between
numbers (their pretty big and not much fun to write down everytime you want
to change).
That is why I let the workbook do all the calculating. Any thoughts?
Thanks for all the insight!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.