Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Import/export VB modules in Excel
Name: lebelinoz Date: November 28, 2006 at 20:30:49 Pacific OS: various Windows CPU/Ram: various Product: DELL
Comment:
Can software automatically import and export VB modules in Excel?
I want to circulate some spreadsheets which, upon opening, would automatically import the latest versions of my team's VB modules from a share drive. It would be a way of imposing source control on Excel macros.
Name: Grok Lobster Date: November 29, 2006 at 11:16:39 Pacific
Reply:
I believe so. Basically you would put a macro in the spreadsheets you are distributing that goes and looks for the modules when opened and another macro that then disassociates them when closed. I don't recall the exact commands. I think there is an example in Help.
0
Response Number 2
Name: lebelinoz Date: November 29, 2006 at 13:32:15 Pacific
Reply:
Thanks, Grok. But I don't think there is a natural way for VB to import/export VB modules: I already looked in Help.
How about saving an .xla file? Would that solve my problem?
0
Response Number 3
Name: Grok Lobster Date: November 29, 2006 at 17:18:30 Pacific
Reply:
No, not import/export. Macros can be run from any available workbook, so have your controlled macros in a 'macroworkbook' on the shared drive and have the distributed spreadsheets call the macros from there. I think I used to do it using a custom toolbar with buttons for each macro which were assigned after displaying the toolbar and unassigned when closing the workbook. The unassigning is important, or the old macro will be called.
Summary: Could you kick the file out to a .csv instead? When you import a csv file in Excel, it will give you an option to format that row as text, and as a result leading 0s will be preserved. Alternatively, ...
Summary: Hi I've created a very very simple program in Excels VB Editor and would like to run it from within a spreadsheet via any simple method, even automatically when opening the spreadsheet. I haven't got ...
Summary: I’ve been trying to import some tasks that I have access to but that aren’t my tasks into an Excel file. I want to be able to do this with a "shared task" located in one of my "public folders" so ...