-
WSandrewgibsonsw
AskWoody LoungerThanks. I can append the customer list to the customers table – it gives me key violations if the company already exists in the list, which I can ignore. I have then been able to append the addresses to the addresses table, and it pulls across the company id for the relevant company. However, it is at the third stage, when I want to append contact names to the contacts table that I get problems. I get a cross-product of the records – that is, if there are four addresses and six contacts it suggests that it will append 24 records!
How can I get rid of the cross-product and ensure that it will populate the contacts table with the correct AddressID numbers? Help!
-
WSandrewgibsonsw
AskWoody LoungerThe keyboard shortcuts I refer to occurred within the Open and Save As dialogs.
-
WSandrewgibsonsw
AskWoody LoungerThe following code seems to be doing what I want. It still seems slow though??
Sub Combs()
Dim strNumber As String
Dim varCombs As Variant
Dim intCounter As IntegerFor varCombs = 123456789 To 9876543210#
strNumber = CStr(Format(varCombs, “0000000000”))
For intCounter = 1 To 9
If InStr(Right(strNumber, 10 – intCounter), Mid(strNumber, intCounter, 1)) > 0 Then
GoTo SkipNumber
End If
Next intCounter
Debug.Print strNumber
SkipNumber:
Next varCombs
End SubThis code generates the entire sequence of numbers, then performs string comparisons to if the generated number contains duplicates. Any other ideas?
-
WSandrewgibsonsw
AskWoody LoungerGeoff’s code seems to be heading along the right lines – I do want to avoid duplicate digits. However, I was hoping there was a simpler way of coding it??
-
WSandrewgibsonsw
AskWoody Lounger -
WSandrewgibsonsw
AskWoody LoungerIn Access highlight the table and click on Design on the right. Move the cursor to the field you want to change. In the Format property in the list of Field Properties underneath type your custom format.
-
WSandrewgibsonsw
AskWoody LoungerAlmost There! The example cope from Help is:
SaveSetting appname := “MyApp”, section := “Startup”, _
key := “Top”, setting := 75
I’m OK with the ‘setting’ and ‘key’. Should ‘appname’ be the name of an Object Variable that points to Excel? Also, does ‘section’ need to pre-exist, or will it create a new section? Cheers, Andy. -
WSandrewgibsonsw
AskWoody LoungerWhenever you open Excel it re-loads the Add-Ins, so that this option reverts to its default. I think you will need to create a VBA procedure that runs on starting Excel that changes this option. If you are new to VBA programming perhaps someone can help you with the code to do this?
-
WSandrewgibsonsw
AskWoody LoungerThank you for your prompt reply.
However, I wish to create a range name that doesn’t refer to a specific sheet. In Excel you can use RefersTo: =!$A$1:$D$4 (without a sheet reference). Typing the range name in the name box and pressing Enter selects A1:D4 for whichever sheet you happen to be in. However, trying to do the same in VBA generates an error. -
WSandrewgibsonsw
AskWoody LoungerWhen you choose Insert/Hyperlink from Excel, having tracked down the document, you can type the Bookmark name directly in the Named Location area. The Tooltip doesn’t show the Bookmark name, but it does work.
-
WSandrewgibsonsw
AskWoody LoungerSorted! I hadn’t included a Reference to Aptbean.xla. By including this the Toolkit functions appear in the Object Browser. I don’t then need to qualify the reference to the use the function(s). For example, ‘MsgBox Networkdays(Now(),Now()+10)’ works beautifully!! Cheers.
-
WSandrewgibsonsw
AskWoody LoungerIf you use the custom format ’00”:”00′ you can enter the time of 11 minutes, 20 seconds as 1120 and it will display correctly. This avoids you having to always key a leading ‘0:’ for the hours, but involves a bit more work if you need to sum the minutes and seconds.
-
WSandrewgibsonsw
AskWoody LoungerI tracked down an article that shows me how to use the Registry to store the invoice number. However, I would prefer not to use the registry if possible. I was thinking of storing the first number in the original template. When a new document is created I want to open the original template and read and adjust the next number from there. Is this possible?
-
WSandrewgibsonsw
AskWoody LoungerCheers, this works Ok. However, I feel sure I should be able to reference the function directly, without creating a string. The function must reside in the Funcres.xla Add-in, although I don’t know the name of the module. I’m look for something like ‘Workbooks(“funcres.xla”)…NetWorkDays(..)’?!
-
WSandrewgibsonsw
AskWoody LoungerI’m not up with OutLook VBS either, but I notice you quote the word false in the first line within double-quotes. I would have thought that you should omit the quotes as the word False is a number.
![]() |
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
-
Sometimes I wonder about these bots
by
Susan Bradley
6 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
1 hour, 53 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
2 hours, 54 minutes ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
2 hours, 19 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
3 hours ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
5 hours, 35 minutes ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
5 hours, 37 minutes ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
12 hours, 38 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
13 hours, 44 minutes ago -
0Patch, where to begin
by
cassel23
7 hours, 46 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
1 day, 3 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
15 hours, 8 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
1 day, 11 hours ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
1 day, 2 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
14 hours, 1 minute ago -
Installer program can’t read my registry
by
Peobody
8 hours, 59 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
1 day ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
1 day, 8 hours ago -
False error message from eMClient
by
WSSebastian42
1 day, 23 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
2 days, 8 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
2 days, 9 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
1 day, 5 hours ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
2 days, 12 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
1 day, 13 hours ago -
Outdated Laptop
by
jdamkeene
2 days, 18 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 23 hours ago -
Another big Microsoft layoff
by
Charlie
2 days, 23 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
1 hour, 30 minutes ago -
May 2025 updates are out
by
Susan Bradley
3 hours, 12 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
3 days, 5 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.