Hello all,
there's an entry called "Start" at Extras->Options->More Options->Button "File Paths".
visguy: Tools > Options > Advanced > File Paths... > Start-up
(I have german Visio and only translatetd above locations. The real english name may be different).
The help says, that in this path you could save Macros and Add-Ons that will start automatic when Visio is started.
Has anyone tried this? How do I save Makros there? I tried to export a Modul to a *.bas file and saved it there, but nothing happened.
I need this Info (related to another topic, where no answers came) to force Visio to start only with a certain template.
Hi Jumpy,
I couldn't get vba inside of Visio files to work, nor VBS files. But .exes work just fine.
For example, you can put a copy of the Visio Event Monitor Tool (http://visualsignals.typepad.co.uk/vislog/2008/06/using-the-visio-event-monitor-tool.html) in your "Vis Startup" directory, and it will fire when Visio starts.
I'm sure if you can get COM add-ins to go off using this structure, or if that is even necessary. I find that a lot of the utilities I create work better as .exes anyway. No VBA code being copied everywhere, and no hassle with setup and publishing that add-ins cause.
As .exe means, I have to write sth. in C++ or #???
I just started learning plain C in school.
Or is it possible to save a VBA as .exe, too? With Visual Studio perhaps?
I make .exes in Visual Studio using C# or VB.NET.
Hmm, maybe I should write another article - simple example of programming Visio using Visual Studio. There are plenty of examples in the Visio SDK, but sometimes people need a story on how to get started.
Go for it! Your "stories" are great. ;D Besides, unless an individual is "hunting" or "on-a-mission", some aspects of Visio don't "suggest themselves" nor their usefulness. :P ??? That's where your "Tales of Visio" come in. They bring you in, and then, the light goes on. :o
I would like that, too. To see one time how it is done and why.
After that it is easier to use that for other situations, because I hopefully have understood how it works.
Hi Jumpy,
I wonder what solution you chose at the end. I do need myself to solve exactly the same problem. Would appreciate if you share it.
Chris, did you happen to write that article yet?
Hi Yacine,
I made a empty drawing. Called it "Start.vsd".
It's in a folder that is know to Visio in the Dialog
Tools > Options > Advanced > File Paths > Drawings
I created a new Desktop-Link to Visio, went to properties and entered the filename behind the execute statement.
Know, whenever you start Visio with that Desktop-Link, it will start with that drawing.
-------
That special Start.vsd drawing is mostly empty and contains only one macro for the Document_Opened event in the ThisDocumet modul.
The code there opens the template (does some things to it) and closes the Start.vsd file and so itself.
--------
Not very nice, but it works.
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 62 (
showintegrate_autoload, cache_get_data, integrate_pre_load, integrate_load_session, integrate_verify_user, cache_get_data, integrate_user_info, integrate_load_board, cache_get_data, integrate_board_info, cache_get_data, integrate_allowed_to_general, integrate_pre_load_theme, cache_get_data, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, cache_get_data, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 25 - 925KB. (
show/home/iw0lkfe3x6cq/public_html/vgforum/index.php, /home/iw0lkfe3x6cq/public_html/vgforum/Settings.php, /home/iw0lkfe3x6cq/public_html/vgforum/cache/db_last_error.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/QueryString.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Auth.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Errors.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Load.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Security.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Compat.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Db-mysql.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApi.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/CacheApiInterface.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Cache/APIs/FileBased.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Subs-Charset.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/Metadata.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/QuickCheck.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Session.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Logging.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Class-BrowserDetect.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Printpage.php, (Current Theme)/Printpage.template.php, /home/iw0lkfe3x6cq/public_html/vgforum/Sources/Unicode/CaseUpper.php)
Memory used: 767KB.
Tokens:
post-login.
Cache hits: 7: 0.00098s for 22,300 bytes (
showget modSettings: 0.00043s - 19981 bytes, get known_languages: 0.00015s - 1277 bytes, get board_parents-0: 0.00010s - 2 bytes, get permissions:-1: 0.00007s - 50 bytes, get theme_settings-1: 0.00010s - 980 bytes, get log_online-update: 0.00008s - 10 bytes, get menu_buttons--1-english: 0.00004s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 9.
[Show Queries]