Does someone know how to write VBA code in outside file, which is “imported” into Excel 2003 VBA macro every time you run this macro in Excel – like self updating code?
The idea is I write code in outside editor (VIm), and every time I start Excel macro, macro checks for newer data, import that code inside if necessary and then run it (may be one or more functions/subs).
The steps are: open Excel, open XLS file, click on the button, the macro starts, checks for newer outside data (code I have written in outside editor), if data is new, delete old code, import outside code and then actually run macro itself.
Anyone?
Found solution (partly from http://www.cpearson.com/excel/vbe.aspx) 10x Scott:
But how to check if the outside code changed or not?