I have a bunch of Visio Shapes that I use for UML based architecture drawing (http://pro.iankoenig.com/visio.php (http://pro.iankoenig.com/visio.php)). Version 1 only uses shapesheet functions. There are a number of things I woudl like to do in v2 when the shapes snap together to make them more functional, but since I know of no shapesheet function to parse the formula in a cell (you can only get the evaluated value as far as I can tell), I have to resort to VBA.
Writing the VBA is pretty trivial. A few lines to pull the formulae out of the PinX/Y cells, parse for the referenced shape and voila you have the relationship. But unfortunately once I resort to VBA, I am in a whole new world of Visio solutions, requiring a digital certificate and signed object to allow the stencil to be loaded on a target machine.
Basically, I give this stuff away for free, the shapes just assist my architecture diagrams, and I dont have a digital certificate. All I really want is a small sandbox to play in with some VBA that only touches shapes and pages, but Visio / Microsoft did not write it that way, so here we are.
Is there a way out? Has anybody tried .Net/VSTO? Does that satisfy? Can these things build a managed code addin and not require a digital signature?
Alternatively, does anybody know of a way to get the formula from a cell? If I knew that, I could probably do everything in the shapeshheet and avoid VBA altogether.
In case you do go down the digital certificate route then have a look at Mitchell Vincent's site
http://www.ksoftware.net/code_signing.html (http://www.ksoftware.net/code_signing.html)
A very reasonable $99/year.
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: 43 (
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, integrate_actions, integrate_pre_parsebbc, integrate_bbc_codes, 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: 771KB.
Tokens:
post-login.
Cache hits: 6: 0.00142s for 22,292 bytes (
showget modSettings: 0.00060s - 19983 bytes, get known_languages: 0.00036s - 1277 bytes, get board_parents-0: 0.00017s - 2 bytes, get permissions:-1: 0.00011s - 50 bytes, get theme_settings-1: 0.00014s - 980 bytes, get menu_buttons--1-english: 0.00004s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 8.
[Show Queries]