LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Store code outside the workbook, is it possible?

Is it possible to store a module (maybe export it and keep it in a specific
location), then 'call' it from the workbook. So it would be like having a
text file in a folder on your c drive and then instgructing the code to copy
the string and use it as a string variable in the code and run it from
within another sub.

e.g.

Sub GetOutsideCode

Dim sCode As String

sCode = TextFileInSpecifiedFolder.Contents

Call sCode

End sub


or some such thing. I know it used to be possible to get values from a
closed workbook using GetValue with excel 2003, don't know if it's still
available in 2007 (anyone know?) but it strikes me that if it is and my idea
above won't work, then storing the code in cells in a workbook should
produce the same end result.

One of my reasons for wanting to do this is that in order to protect
intellectual property in an excel workbook it could be possible to have the
file containing the code in the specified folder and then kill it at a
specified interval unless a passwrod was entered before that interval. Bit
of a whacky idea maybe but it should work well enough for the audience i
have in mind.

Thanks and regards, Mark


 
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
store active workbook greg Excel Programming 1 May 27th 08 11:46 PM
Code to track changes by row and store Mike Excel Programming 0 July 5th 07 02:56 PM
Store Active Workbook [email protected] Excel Discussion (Misc queries) 0 March 28th 07 03:30 PM
Store FilePath Inside Code Magnivy Excel Programming 3 August 16th 06 10:08 PM
Store Information but not in a Workbook Andibevan[_2_] Excel Programming 2 March 30th 05 02:11 PM


All times are GMT +1. The time now is 01:36 AM.

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

About Us

"It's about Microsoft Excel"