-
WSotk
AskWoody LoungerJanuary 24, 2002 at 12:13 am in reply to: Validating/checking a value (Word / Access 97 VBA) #565637Kevin,
I think it best I outline more specifically whats happenning.
1) From Word I do a search of all files in a nominated folder. Then I load each filename into an array.
2) In Access I have a list of file types (extensions). From Word I read this list at the start (once) and populate an array – I now have an array of extensions that I want to learn more about.
3) For each file found I test using a loop against the valus found in (2). If there is a match then get some properties, If not then move onto the next.Essentially, I wanted to see if there was a more efficient way to do step (3) e.g. rather than doing a loop (until found or EOF), use a single statement, maybe like MATCH in Excel 97. In english this would be – If filefound has a MATCH in current list then TRUE else FALSE.
If I adopt the the initial reply by jscher2000 I would not bother reading the list from Access but testing each file found using a filter query against the database. While that would work, I am not sure about the performance implications especially if a number of people are doing this at once.
I hope that better clarifies the process.
thanks,
otk -
WSotk
AskWoody LoungerJanuary 24, 2002 at 12:01 am in reply to: Validating/checking a value (Word / Access 97 VBA) #565634rory,
Tks for feedback, pls see reply to Kevinotk
-
WSotk
AskWoody LoungerJanuary 24, 2002 at 12:00 am in reply to: Validating/checking a value (Word / Access 97 VBA) #565633Thanks jscher2000 , I’ll investigate.
otk
-
WSotk
AskWoody Loungerjscher2000,
OK, that approaches it from the other angle and should work – be interesting what the overhead doing it this way would be i.e. would be using query many times as opposed to reading all values at start and cycling through them…as initially posted.I may not have my terms right but I was looking to see if an “array variable” could be populated with the values and be tested something like.
testtext=”A”
if testtext IN Array(“A”,”B”,”C”)Where,
“A”,”B”,”C” are the values read from the database
IN is a term used just to illustrate a union type function.In the end if performance is not an issue then your suggestion of turning it around will suit me perfectly.
Thanks,
otk -
WSotk
AskWoody LoungerIgnore my previous post. That structure (placing .vsd converted .htms in their own dir) will not in fact work either…as the hyperlink base value is lost irrespective of whether you set it or not. …it is lost in the conversion.
So its worst than I thought.
In fact from what I can gather , relative hyperlinks will only work if,
1) You put all the visio pages in ONE .vsd file and save as htm (this conversion will resolve the same file names issue)
2) Ensure all the .doc and the files in (1) are in the same dir. And .docs in nested dirs will not work.Other things I have found if you want link between the visio pages (in one file).
1) If you set the link to a page (which you can rename if you choose) it will work.
2) While you can link to a button on a page, it will only work when navigating in .vsd format. The link wont work at all when the file is converted. Remove the button reference i.e. leave just the page and within .htm it fine.So as far as I can tell if you want to link in relative mode,
1) between visio files in .htm mode.
2) viso to word and word to visioYou need to,
1) have them all your viso pages in one file
2) Any linking between the viso pages is restricted to a page level only.
3) Any word docs have to be in the same dir as the .htm fileSeems overly restricting to me.
otk
-
WSotk
AskWoody LoungerYou share my frustrations of what I consider to be a catch 22 situation if you want “objects” in visio .vsd files, saved as htm files to link to word .doc files, using relative links, all sitting in the same parent dir.
1) When you save a .vsd in .htm there are a number of supporting files created. Sometimes some of the supporting filenames have the same filename between multiple .vsd conversions. That being the case you have to save each .vsd to .htm conversion in its own directory. Herein lies the catch 22.
By saving each .vsd as .htm in its own dir the relative link path becomes incorrect and furthermore does not follow the “hyperlink base” setting if you have changed it in the .vsd file. This value appears to be lost in the conversion and as result you will onl ybe able to link to word files that are in the same dir as the original .vsd file
So a workable scenario is placing all the .doc and .vsd files in the same dir, creating a separate dir for each .vsd file and saving the .htm there.
c:maindoc1.doc
c:maindoc2.doc
c:mainvisio1.vsd (containg objects that are relatively linked to doc1 and doc 2)
c:mainvisio2.vsd (containg objects that are relatively linked to doc1 and doc 2)
c:mainvisio1htmvisio1.htm
c:mainvisio2tmvisio2.htmIts not ideal to have everything in the same dir especially if you have a lot if files, but beggers cant be choosers.
Note : you could also place a link from the Word .doc files to cross reference the visio files but with the following caveats,
In a single page viso file you could point to wither the .vsd or .htm
In a multi page Visio file you can only get to a subsequent page if you reference the .vsd file…using the “Sub address” box. Pointing to the .htm file with “Sub Address” = page -2 will only take it to the first page.I may have missed something but my analysis thus far of the capability is disappointing.
otk.
hmmm….
otk -
WSotk
AskWoody LoungerIn researching a an issue I have with hyperlinks in Visio I have tried something that should work for you. I run Visio 2000, Word 97 and Windows NT 4.
Open the multipage visio file you want to link to (from Word). In visio, drop an object (on any page) and,
1) Set the Address to the same visio file
2) Set the Sub Address to , say, Page 2 of the visio file
Press OK to complete the hyperlinkCopy the object and in Word select Edit, Paste Link
Save the Word file as an htm file.
Right click on the object and select edit , hyperlink
For me, the “Named location in file” said “Page-2” but the “Link to file or URl was empty”… so I used the browse button to reselect the visio file and confirmed with OK.When I floated the mouse over the “visio ” object in the word htm file the pop up box listed the name of the visio file.
When I clicked on the linked it went to page 2 of the visio file.I have tried keeping to Word doc in .doc format as was also able to link page 2 of the visio file, using “Named location in file” = Page-2
If you manage to get this working for you the next issue you may encounter (which is where I am at) is making (relative) hyperlinks work between files different directories.
otk
-
WSotk
AskWoody LoungerCharlotte,
Yes, that would figure. By instantiate I guess you mean “session.Initialize” below?Dim session As Object
Set session = CreateObject(“Lotus.NotesSession”)
‘ Initialize the NotesSession
session.Initialize
MsgBox session.UserName -
WSotk
AskWoody LoungerPaul,
Thx. I have something working but am missing the ability to start a notes session if its not open…which you have kindly included. I had tracked down some code from the Lotus site that I thought would do the trick but received an error (which is similar to what I get when I run what you have included).The error occurs on the line,
Set Session = CreateObject(“Notes.NotesSession”)
Run time error 429
Active X component cant create objectThe Help says “Creating objects requires that the object’s class be registered in the system registry and that any associated dynamic-link libraries (DLL) be available. ”
Within the references section I have “Lotus Domino Objects” (domobj.tlb) ticked so I am now guessing it must be an Active X listing that is not selected.
Additionally, from a Lotus.com download realting to “Lotus Domino and Toolkits for COM” it said “The Domino Objects, with their COM interface, are available on a machine where you have installed any of the following products, in version R5.0.2b or later:”, and to register the following dll, nlsxbe.dll.
I did no successfully using – regsvr32 C:Lotusnotesnlsxbe.dllI dont know enough about this part of it but would suspect as it is a dll thats not registered that it be an Active X one. Any ideas? I’ll work my way thorugh the Active X ones and see….
otk.
-
WSotk
AskWoody LoungerBrooke,
OK. Have not come across that area. Some you may be interested in, if you have not found them,
http://www.lotus.com/developers/devbase.ns…K19991215044902]http://www.lotus.com/developers/itcentral….76?OpenDocument
Sorry, I have yet used the “make a nice link” feature yet.
-
WSotk
AskWoody LoungerBrooke,
I found some doco on the Lotus site that will probably help re integration with MS Officehttp://www.lotus.com/developers/itcentral….76?OpenDocument
-
WSotk
AskWoody LoungerBrooke,
Yes, thats on the money. Its humming….Many thanks for your time and patience getting me this far. If you could bear a little more I have some queries if you are familiar in this territory….1) I wanted to get a further understanding and options of the Notes model, but will need to track down the help file for it. The lines for .Send and .Save…are you able to confirm the what the True,False parameter options mean?
Call doc.Send(False, Recepients) ‘send the doc
Call doc.Save(True, False) ‘save the doc in sent items2) Do you know how to,
a) request a “return receipt”
Set Importance levels i.e. low,normal,high
c) Set delivery report i.e. only on failure, confirm on delivery -
WSotk
AskWoody LoungerBrooke,
I have been trying the Array approch as per your suggestion with mixed results.1) Using actual email addresses – this works as expected
‘Recepients = Array(“joe@mysite.com”, “jane@mysite.com”, “pete@mysite.com”)
..
doc.SendTo = Recepients
..
Call doc.SEND(False, Recepients)2) Using variables to represent email addresses – this does not quite get there. The first names receives a mail but not the next 2. Strangely when I look in the sent folder the email is addressed to,
To : joe@mysite.com, jane@mysite.com, pete@mysite.com
BUT the only email that comes through shows the following,
To : joe@mysite.com, jane
The subsequent names are concatenated. Go figure!?!SendToAddress1 = “pete@mysite.com”
SendToAddress2 = “joe@mysite.com”
SendToAddress3 = “jane@mysite.com”Recepients = Array(SendToAddress1 & “, ” & SendToAddress2 & “, ” & SendToAddress3)
..
doc.SendTo = Recepients
..
Call doc.SEND(False, Recepients) -
WSotk
AskWoody LoungerBrooke,
Thanks, got that. Will try it out. I found the method I used only sent it to the first address of the list…ignoring the others. I appreciate the speedy reply… -
WSotk
AskWoody LoungerThanks for reply “hedgehog”,
I have previously looked at Chris’s site but will follow up again. However, I want to avoid using macros (which I current use) for two reasons.
1) Avoid the “Do you want to start macro” message each time its opened.
2) Ensure the info is “dynamic” or uptodate each time its opened.otk
![]() |
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
-
A Funny Thing Happened on the Way to the Forum
by
bbearren
10 hours, 11 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
4 hours, 55 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
1 hour, 9 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
17 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
14 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
22 hours, 43 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
3 hours, 44 minutes ago -
23 and you
by
Max Stul Oppenheimer
10 hours, 59 minutes ago -
April’s deluge of patches
by
Susan Bradley
15 hours, 10 minutes ago -
Windows 11 Windows Updater question
by
Tex265
20 hours, 56 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 19 hours ago -
Registry Patches for Windows 10
by
Drcard:))
2 days ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 6 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
16 hours, 14 minutes ago -
Align objects on a OneNote page
by
CWBillow
2 days, 5 hours ago -
OneNote Send To button?
by
CWBillow
2 days, 6 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
2 days, 15 hours ago -
No Newsletters since 27 January
by
rog7
19 hours, 41 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day, 15 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
1 day, 14 hours ago -
Google One Storage Questions
by
LHiggins
22 hours, 17 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
1 day, 5 hours ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 20 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
3 days, 5 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
16 hours, 30 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
2 days, 13 hours ago -
Firefox 137
by
Charlie
5 hours, 33 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 18 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 18 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 18 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.