I have a question about using formulas in the shapesheet window.
My goals is to change to the text color of an object if it has a hyperlink and give it another text color when the hyperlink is removed.
I am searching for a formula that can check/count whether the section "Hyperlinks" has any rows or not.
I do not want to use any VBA, only if there is no other way possible
So far I have tried the following formula in the section "Character" and column "Color":
=IF(Hyperlink.Row_1.SubAddress="",2,0)
This works fine when you insert a hyperlink for the very first time; the text turns black and when you remove the hyperlink, the text turns red.
However, when you insert a new hyperlink afterwards, the formula does anymore because either:
- The formua has changed to: =IF(ref()="",2,0)
- The name of the row in the hyperlinks sectio has changed to Hyperlink.Row_<any random number>
Could you please help me out?
Chris posted some time ago a formula to count the geometry sections in a shape. I think it can be adapted to your problem
http://www.visguy.com/2006/10/04/counting-geometry-sections/
I have read this topic you refer to. But I am new to Visio formula's.
As far as I understand, the formula's still point to a spefic row in Hyperlinks, which will be removed.
Is there no formula that can count the row of any section? Or that a formula can point to the first row (independed of the row name) using Indexing?
that post is checking the section in geometry...not hyperlinks
Alternatively, you could do something similar for first cell in each geomeotry......geometry<n>.x1
I tend to think doing this in visio shapesheet (some type of dynamic interrogation of the shape via formulas) is probably going
to lead to a dead end. Visio shapes are NOT self aware....so you cant do any sort of dynamic discovery via shapesheet
(nothing like....on drop, find shape X....or....on trigger, figure out what shapes are attached to me).
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: 50 (
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_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: 772KB.
Tokens:
post-login.
Cache hits: 7: 0.00118s for 22,302 bytes (
showget modSettings: 0.00052s - 19983 bytes, get known_languages: 0.00025s - 1277 bytes, get board_parents-0: 0.00014s - 2 bytes, get permissions:-1: 0.00008s - 50 bytes, get theme_settings-1: 0.00009s - 980 bytes, get log_online-update: 0.00008s - 10 bytes, get menu_buttons--1-english: 0.00001s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 9.
[Show Queries]