VBE Userform position - Page 2


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

New Reply
 
Thread Tools Rate Thread Display Modes
  #11  
Old 14th November 2012, 16:17
Rory's Avatar
Rory Rory is offline
Solution Centre Professional
MS Office Version: 2003 onwards
MS Office Skill Level: Competent technician
 
Join Date: Feb 2010
Location: Ubique
Age: 27
Posts: 871
Posts Per Day: 0.31
My Top Tip Count: 2
Thanks to others: 0
Thanked 112 Times in 109 Posts
Reputation: 1963 (35) Rory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant future
2 Top Tips
Northern_Ireland
Default Re: VBE Userform position


------ Register to get rid of these "In Post" ads! ------


Interesting compensating values, by the way. I suspect that the 0.75 is the pointsperpixel value of the current display (perhaps the 1.5 is simply double that, perhaps it's something else!)

I wonder if it might be simpler to use MoveWindow to resize the form rather than using its Height and Width properties - will try and find time to test.
__________________
Rory
Microsoft MVP - Excel

Always listen to advice, even if you don't take it.

The Code Cage Advertisment
Advertisement
  #12  
Old 14th November 2012, 16:43
snb's Avatar
snb snb is offline
Forum VIP
MS Office Version: > Office 97
MS Office Skill Level: Interested
 
Join Date: Feb 2011
Location: Europe
Posts: 1,393
Posts Per Day: 0.57
My Top Tip Count: 0
Thanks to others: 0
Thanked 314 Times in 307 Posts
Reputation: 5076 (70) snb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond repute
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


I still don't...

See the attachment
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.

The Code Cage Advertisment
Advertisement
  #13  
Old 14th November 2012, 17:26
Rory's Avatar
Rory Rory is offline
Solution Centre Professional
MS Office Version: 2003 onwards
MS Office Skill Level: Competent technician
 
Join Date: Feb 2010
Location: Ubique
Age: 27
Posts: 871
Posts Per Day: 0.31
My Top Tip Count: 2
Thanks to others: 0
Thanked 112 Times in 109 Posts
Reputation: 1963 (35) Rory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant future
2 Top Tips
Northern_Ireland
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


You mean you don't see that form move the first time you click the button? On what system setup?
__________________
Rory
Microsoft MVP - Excel

Always listen to advice, even if you don't take it.

  #14  
Old 14th November 2012, 17:55
snb's Avatar
snb snb is offline
Forum VIP
MS Office Version: > Office 97
MS Office Skill Level: Interested
 
Join Date: Feb 2011
Location: Europe
Posts: 1,393
Posts Per Day: 0.57
My Top Tip Count: 0
Thanks to others: 0
Thanked 314 Times in 307 Posts
Reputation: 5076 (70) snb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond repute
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


The form is always in the same position: at startup, after clicking the button, after closing the file and reopening it. (see the 4th paragraph of the inital question: post #1).
So I see no need to store these positions elsewhere.

  #15  
Old 14th November 2012, 18:42
Rory's Avatar
Rory Rory is offline
Solution Centre Professional
MS Office Version: 2003 onwards
MS Office Skill Level: Competent technician
 
Join Date: Feb 2010
Location: Ubique
Age: 27
Posts: 871
Posts Per Day: 0.31
My Top Tip Count: 2
Thanks to others: 0
Thanked 112 Times in 109 Posts
Reputation: 1963 (35) Rory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant future
2 Top Tips
Northern_Ireland
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


Using your file, it moves for me on first click, hence my question about your system.
__________________
Rory
Microsoft MVP - Excel

Always listen to advice, even if you don't take it.

The Code Cage Advertisment
Advertisement
  #16  
Old 14th November 2012, 21:13
snb's Avatar
snb snb is offline
Forum VIP
MS Office Version: > Office 97
MS Office Skill Level: Interested
 
Join Date: Feb 2011
Location: Europe
Posts: 1,393
Posts Per Day: 0.57
My Top Tip Count: 0
Thanks to others: 0
Thanked 314 Times in 307 Posts
Reputation: 5076 (70) snb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond repute
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


Whether I start in the VBEditor or with an ActiveX button in the sheet the top left postion is invariable.
What exactly do you mean with system setup ? (XP, XL 2010)

  #17  
Old 14th November 2012, 22:15
Rory's Avatar
Rory Rory is offline
Solution Centre Professional
MS Office Version: 2003 onwards
MS Office Skill Level: Competent technician
 
Join Date: Feb 2010
Location: Ubique
Age: 27
Posts: 871
Posts Per Day: 0.31
My Top Tip Count: 2
Thanks to others: 0
Thanked 112 Times in 109 Posts
Reputation: 1963 (35) Rory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant futureRory has a brilliant future
2 Top Tips
Northern_Ireland
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


OS and Office version. I was testing in Win7 and O2010.
__________________
Rory
Microsoft MVP - Excel

Always listen to advice, even if you don't take it.

  #18  
Old 14th November 2012, 22:24
snb's Avatar
snb snb is offline
Forum VIP
MS Office Version: > Office 97
MS Office Skill Level: Interested
 
Join Date: Feb 2011
Location: Europe
Posts: 1,393
Posts Per Day: 0.57
My Top Tip Count: 0
Thanks to others: 0
Thanked 314 Times in 307 Posts
Reputation: 5076 (70) snb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond repute
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


Like I indicated: XP & XL2010.

Alerted by you signals I tested again and can't see any change in the top left position.

The Code Cage Advertisment
Advertisement
  #19  
Old 15th November 2012, 16:17
LisaGreen's Avatar
LisaGreen LisaGreen is offline
Solution Centre Professional
MS Office Version: MS Office 97, 2003, 2007,2010
MS Office Skill Level: Can use VBA
 
Join Date: Jun 2011
Location: Houten, Nederlands
Age: 65
Posts: 568
Posts Per Day: 0.25
My Top Tip Count: 1
Thanks to others: 9
Thanked 18 Times in 16 Posts
Reputation: 270 (14) LisaGreen is a jewel in the roughLisaGreen is a jewel in the roughLisaGreen is a jewel in the rough
1 Top Tips
Great_Britain
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


Moves on first click here as well... W7 64bit Excel 10

Lisa

------------------------------ posted after 22 minutes of original post ------------------------------

Same here... moves on first click... W7 Excel 10 32bit

Lisa


Last edited by LisaGreen; 15th November 2012 at 16:17.
  #20  
Old 15th November 2012, 21:50
snb's Avatar
snb snb is offline
Forum VIP
MS Office Version: > Office 97
MS Office Skill Level: Interested
 
Join Date: Feb 2011
Location: Europe
Posts: 1,393
Posts Per Day: 0.57
My Top Tip Count: 0
Thanks to others: 0
Thanked 314 Times in 307 Posts
Reputation: 5076 (70) snb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond reputesnb has a reputation beyond repute
Default Re: VBE Userform position

------ Register to get rid of these "In Post" ads! ------


You migth consider to test the order of left =tag & top =tag.
On my system it matters:
if left = Tag is the first command the result is stable; the other way around the form moves.

You could also test the effect of the command 'repaint' in the userform activate event.
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.

Reply & Quote Reply


1 members found this post helpful.
The Code Cage Advertisment
Advertisement
New Reply
The Code Cage at Facebookhe Code Cage at Twitter


Tags
position, userform, vbe

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

All times are GMT +1. The time now is 15:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University
X vBulletin 3.8.7 Debug Information
  • Page Generation 0.20332 seconds
  • Memory Usage 6,675KB
  • Queries Executed 15 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footerEnd
  • (1)ad_footerStart
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_headerEnd
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_leftcolumn_code
  • (1)ad_navbar_below
  • (5)ad_postbit_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (10)helpful_answers
  • (1)helpfulanswers_javascript
  • (1)navbar
  • (3)navbar_link
  • (2)navbar_noticebit
  • (41)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_ctoptip
  • (10)postbit_onlinestatus
  • (102)postbit_reputation
  • (10)postbit_wrapper
  • (1)showthread_changepostsowner_link
  • (1)showthread_quickreply_mrgdp
  • (1)showthread_reason_popup
  • (1)spacer_close
  • (1)spacer_open
  • (1)su_form
  • (3)tagbit
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_datastore.php
  • ./includes/class_hook.php
  • ./awcoding/plugins/awc.php
  • ./awcoding/plugins/ds.php
  • ./awcoding/plugins/ss.php
  • ./includes/functions_notice.php
  • ./mobiquo/smartbanner.php
  • ./mobiquo/include/classTTConnection.php
  • ./mobiquo/smartbanner/head.inc.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/vbatags.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php
  • ./includes/functions_misc.php 

Hooks Called:
  • init_startup
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_check_criteria
  • notices_noticebit
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • helpfulanswers_showthreadorpost
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • helpfulanswers_show_normal
  • reputation_power
  • reputation_image
  • bbcode_parse_start
  • postbit_imicons
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • error_fetch
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete