-
WSHenrik Ryberg
AskWoody LoungerJuly 31, 2003 at 9:48 am in reply to: Form placement in VBA editor (WinNT 4.0. SP6, O2k / VB6.0) #698506The problem persists – even when logged on as a different user.
Contrary if I log on with my account on another PC the problem disappears.
– so it has to be related to this specific computer and its environmentRight now I think I’m on to something….
I’m running a dual screen with Word in One monitor and the VBE in another.It’s using a matrox millenium G200 card. When I change my settings to a single screen, the positioning changes. Further when I change the display size multiple times in to all sorts of odd sizes the X,Y co-ordinates change…. and now I’m experimenting to see if I can land at a setting in the top left corner at the same time as I’m running in dual mode….
-
WSHenrik Ryberg
AskWoody LoungerJuly 31, 2003 at 7:18 am in reply to: Form placement in VBA editor (WinNT 4.0. SP6, O2k / VB6.0) #698499Thanks Hans for the resizing (should have done that myself, apologies)
Jscher; tried your tip, did no good (see picture…)
Charlotte; the “normal” windows view tools do no good – neither cascading, tiling…(I have tried them all in many ways)
Problem is that the form is locked with it’s X,Y co-ordinates within the form window itself, not just the VBE. (see attached picture for full details)With the danger of repeating myself here. The core of the problem seems to be that the X,Y co-ordinates for the placement of the form within the form window somehow has been changed and that even a complete reformatting of the disk doesn’t override this setting. Therefore my gut feeling on this is that it must be a setting stored somewhere “deep down” and the most likely place to me – is the registry – question is then; in what key is this stored ??
Thanks for the many good suggestions – please keep them coming, I’ll try them all….
;o)) Henrik
-
WSHenrik Ryberg
AskWoody LoungerJuly 30, 2003 at 1:22 pm in reply to: Form placement in VBA editor (WinNT 4.0. SP6, O2k / VB6.0) #698083(Edited by HansV on 30-Jul-03 16:22. Reduced huge screenshot in size – it caused horizontal scrolling in most resolutions.)
Resize how ??
I need the form moved towards top left in its window, but top and left edges are somehow locked at their current positions and this goes for all my forms, not just a single one.
Further, when working with large forms, I often have to use another PC as the one with this problem doesn’t provide a horizontal scroll bar, meaning that I sometimes not even can get a hold of the bottom right corner of the form.
When you look at the dots on the edges of the form – you’ll see that top and left are filled (blocked), while right and bottom are hollow (resizable).
But since I can’t get hold of the hollow ones due to the missing horizontal scroll bar, this knowledge isn’t of much use.….and as earlier mentioned I’ve got a nasty feeling that this is triggered by the regEdit and some odd key
(I’ll give Jan KP’s latest answer a go in just a sec.);o)) Henrik
-
WSHenrik Ryberg
AskWoody LoungerJuly 30, 2003 at 11:36 am in reply to: Form placement in VBA editor (WinNT 4.0. SP6, O2k / VB6.0) #698033Thanks for the advice/wild guess.
Unfortunately it didn’t change anything…
Just thought the XY co-ordinates of the window would be stored somewhere in the registry…( maybe on the .frm key – but I cannot “decode” that key);o)) Henrik
-
WSHenrik Ryberg
AskWoody LoungerJuly 30, 2003 at 6:50 am in reply to: Form placement in VBA editor (WinNT 4.0. SP6, O2k / VB6.0) #697989it’s already maximized, but I like to use the debugging and navigation tools as well, so they are all visible and docked (props, Explorer, immediate, watches)
Normally when working with the code, this suits me just fine as I got enough room to navigate within the code (approx. 10x15cm on a “17” screen).
But when I add a form, I get a lot of white space in the top left and can only see the top of the top left corner of the form, which is rather irritating as I don’t have any use for the first whitespace area.I’ve attached a GIF in which you can see how the editor looks – problem is that the form cannot be moved towards top left – I have to scroll down to get it moving…
;O)) Henrik
-
WSHenrik Ryberg
AskWoody LoungerHi, thanks for the reply.
Maybe my first description was a bit unclear or not quite detailed enough.
I have a menupoint with a single “START” item in the standard bar, it is launched from a startup path setting. (Tool-Options)
When the template launches and “.add” a new doc it replaces the “START” with a full menu, where temporary=true
(so… I need to have the bar on an application level – not activedoc. – this means that normal.dot and “MyMaster.dot” will be modified. But I’ve had no problem suppressing and controlling these so far)What puzzles me is the difference and the consequences of the questions, though I believe they relate to the same template, but must have different origins.
Why does it sometimes use the templates full name (eg. “MyTemplateMaster.dot”) and sometimes only the “document template.dot” name ?
– and why is “document template” only used “onFirstSave” – not subsequent save operations…? (and again – what are the effects of my answers to these questions – where are they stored ??)Did this make it any clearer ??
BR
;o)) Henrik -
WSHenrik Ryberg
AskWoody LoungerInteresting….
Wasn’t aware of the Object module issue, but has never put much code in there myself either always used “clean” modules.
(found unconsciously that they provided a better structure and fewer problems – now I know what can be one of the reasons, thanks)If I read your previous mail correctly, then the obj. mod. issue can also be the reason why new projects get corrupted ??
;o)) Henrik
-
WSHenrik Ryberg
AskWoody LoungerThanks,
Yes I’m aware of the code cleaner and has used it in various situations.
However, it is not a 100% efficient. we did a test using both methods and there was some difference – favouring the manual way.
But for general purposes I do agree – it’s sufficiently efficient.Thanks again,
;o) Henrik -
WSHenrik Ryberg
AskWoody LoungerJune 11, 2003 at 6:51 am in reply to: VBA – Word2K, Change source on linked picture (Env: W2K, O2K both Pro, UK #684469Hi M-pod
Thanks for the synopsis.
You’re absolutely right, about this getting tedious.
My problem is that it’s a many-to-many (some 20 folders and approx. 140 files)
(I’ve done a select case to map folders appropiately)What I forgot to mention in my answer to your discussion was that specifically the messagebox bit I had taken out and modified the code accordingly.
My mistake, apologies.
Bests,
HenrikPS: Any idea or news as to when the disabled search function becomes available again (I’m taking that it will be….??)
-
WSHenrik Ryberg
AskWoody LoungerJune 10, 2003 at 1:01 pm in reply to: VBA – Word2K, Change source on linked picture (Env: W2K, O2K both Pro, UK #684210Thanks Hans,
….but finding heads and tales of that discussion is a bit confusing – not being a part of it…
Meanwhile I received a really useful tip from a Word MVP
‘By Doug Robbins – to update links in a document
Dim alink As Field, linktype As Range, linkfile As Range
Dim linklocation As Range, i As Integer, j As Integer, linkcode As Range
Dim Message, Title, Default, Newfile
Dim counter As Integercounter = 0
For Each alink In ActiveDocument.Fields
If alink.Type = wdFieldLink Then
Set linkcode = alink.Code
i = InStr(linkcode, Chr(34))
Set linktype = alink.Code
linktype.End = linktype.Start + i
j = InStr(Mid(linkcode, i + 1), Chr(34))
Set linklocation = alink.Code
linklocation.Start = linklocation.Start + i + j – 1
If counter = 0 Then
Set linkfile = alink.Code
linkfile.End = linkfile.Start + i + j – 1
linkfile.Start = linkfile.Start + i
Message = “Enter the modified path and filename following this
Format ” & linkfile
Title = “Update Link”
Default = linkfile
Newfile = InputBox(Message, Title, Default)
End If
linkcode.Text = linktype & Newfile & linklocation
counter = counter + 1
End If
Next alinkBests,
Henrik -
WSHenrik Ryberg
AskWoody LoungerThanks a lot for your tips – much appreciated.
I need to specify a little bit here. What I’m adding is a “picture from file…”, but your tips works just as fine – no problem.
Problem turned out to be to get hold of the picture once inserted…
Picture is inserted in header/footer and just looping through ‘activedocument.shapes’ returns nothing…
What I wasn’t aware of initially was, that to be sure to got hold of all shapes when looping through the shapes collection in a document, I need also to loop through eg. ActiveDocument.Headers(wdHeaderFooterPrimary).Shapes or similar footer.I didn’t find this obvious, but a lot seems now clearer – thanks.
;o) Henrik
-
WSHenrik Ryberg
AskWoody LoungerFebruary 7, 2003 at 11:35 am in reply to: Diff. btw. Unload and Set obj=Nothing? (Win2000/O2K -UK) #651521Thanks Hans,
So simple and obvious, when explained this way…
;o)) Henrik
-
WSHenrik Ryberg
AskWoody LoungerFebruary 5, 2003 at 7:08 am in reply to: VBA – Scrrenupdating….does .View take precedence (Env: O2000 sr-1 on eit #650725Howard, appreciate your comment, thanks.
What API would you use ?
– wouldn’t it block for other dialogs from the same application, or would they run in separate threads ?;o) Henrik
-
WSHenrik Ryberg
AskWoody LoungerFebruary 5, 2003 at 6:57 am in reply to: VBA – Scrrenupdating….does .View take precedence (Env: O2000 sr-1 on eit #650703To some extend – if I following a view change add a .screenupdating=false, then it works (most the time) until the next change in the “View” setting.
-
WSHenrik Ryberg
AskWoody LoungerDecember 12, 2002 at 1:57 pm in reply to: Validate date from textbox (Wni 2000/ Excel 2000 sp2) #638061Thanks for your answers so far.
Does the snippet below clarify ?
– Textbox is called “txtEventDate”
– currently this one refuses to go around the “if…format(chkDate,”dd/mm/yy)” – it enters the errorhandler every time no matter the format.Any suggestions for improvent ? (Bet you have/ ;o)))
Thanks,
;o) Henrik
**********************************************************************************************Private Sub txtEventDate_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim chkDateOn Error GoTo EventDate_ErrorHandler
If Cancel = True Then Exit Sub
chkDate = txtEventDate.Text
If Not Format(chkDate, “dd/mm/yy”) Then
MsgBox “Incorrect date format – Please try again” & Chr(13) & Chr(13) & “Must be dd/mm/yy”, vbOKOnly, “NDS – Add event”
Cancel = True
End IftxtEventDate.SetFocus
Exit Sub
EventDate_ErrorHandler:
If Err.Number = 13 Then Resume NextEnd Sub
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
HP Pavilion Will Not Wake Up After Being Idle for Longer Period (Awaiting moderation)
by
WSwalterwood44
12 minutes ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
3 hours, 21 minutes ago -
24H2 fixed??
by
CWBillow
6 hours, 2 minutes ago -
Uninstalr Updates
by
jv16
8 hours, 30 minutes ago -
Apple zero days for April
by
Susan Bradley
13 hours, 54 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
19 hours, 25 minutes ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
1 day, 7 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
14 hours, 9 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
21 hours, 38 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
1 day, 15 hours ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
1 day, 18 hours ago -
0patch
by
WSjcgc50
19 hours, 43 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 day, 12 hours ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
1 day, 21 hours ago -
Problem opening image attachments
by
RobertG
1 day, 23 hours ago -
advice for setting up a new windows computer
by
routtco1001
2 days, 14 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
1 day, 18 hours ago -
Android 15 require minimum 32GB of storage
by
Alex5723
2 days, 18 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
2 days, 19 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
2 days, 19 hours ago -
Firefox became sluggish
by
Rick Corbett
11 hours, 51 minutes ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
2 days, 23 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
3 days ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
1 day, 21 hours ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
2 hours, 17 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 day, 21 hours ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
42 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
3 days, 14 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
2 days, 18 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
3 days, 4 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.