This topic is directly related to a topic from 2008: http://visguy.com/vgforum/index.php?topic=26.msg60#msg60
Basically, I'm using a macro to ungroup a Shape upon drop AND ignore the error message per the instructions in the link above. I also updated how the macro is called (per the thread) to use "CALLTHIS("ThisDocument.UngroupThis")" on the ShapeSheet for the Shape.
However, I drag the shape onto the document but the shape remains grouped. I'm not sure what I'm doing wrong and I need more assistance.
I'm definitely a novice here, and any help will be greatly appreciated. I'm at my wit's end after looking into this issue for 7 hours!
Hi,
You need to set up the CallThis routine properly.
- It needs to be in a MODULE of the stencil
- Instead of ThisDocument, try the actual name of the stencil.
Here's a link, where one was struggling with the function: http://visguy.com/vgforum/index.php?topic=4358.0 (http://visguy.com/vgforum/index.php?topic=4358.0)
It actually was discussed plenty of times as you can see:
http://visguy.com/vgforum/index.php?topic=359.0 (http://visguy.com/vgforum/index.php?topic=359.0)
http://visguy.com/vgforum/index.php?topic=4125.0 (http://visguy.com/vgforum/index.php?topic=4125.0)
http://visguy.com/vgforum/index.php?topic=2228.0 (http://visguy.com/vgforum/index.php?topic=2228.0)
I suppose that's where I'm confused. Again, a complete novice here. I have the module on my stencil and I'm referencing the stencil name in the EventDrop. Why is my shape still grouped on EventDrop?
I've attached a view of what I have done for the Module and ShapeSheet.
You would start the debugging process, by checking if the routine is called.
Set a break point at the first instruction step (Application.AlertResponse=1). https://www.google.de/?gws_rd=ssl#newwindow=1&safe=off&q=vba+set+breakpoint
In one of the links I sent, there are different ways to call the routine. You may try them all. For my part I would have written CALLTHIS("UngroupThis","WireFrameComponents")
YACINE!!! IT WORKED! THANK YOU!
Changing my EventDrop to "CALLTHIS("UngroupThis","WireFrameComponents")" did the trick!
I was so frustrated with this issue, I was going to give up. Thank you for not giving up on me!!
;D ;D ;D ;D ;D
-jg
my pleasure
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: 56 (
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_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.00101s for 22,301 bytes (
showget modSettings: 0.00044s - 19982 bytes, get known_languages: 0.00015s - 1277 bytes, get board_parents-0: 0.00011s - 2 bytes, get permissions:-1: 0.00009s - 50 bytes, get theme_settings-1: 0.00012s - 980 bytes, get log_online-update: 0.00009s - 10 bytes, get menu_buttons--1-english: 0.00002s - 0 bytes)
Cache misses: 1: (
showget menu_buttons--1-english)
Queries used: 9.
[Show Queries]