-
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
-
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
46 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
2 hours, 33 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
31 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
7 hours, 7 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
13 hours, 34 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
7 hours, 35 minutes ago -
23 and you
by
Max Stul Oppenheimer
13 hours, 36 minutes ago -
April’s deluge of patches
by
Susan Bradley
3 minutes ago -
Windows 11 Windows Updater question
by
Tex265
5 hours, 50 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 4 hours ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 9 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
15 hours, 48 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
1 hour, 7 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 14 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 15 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 23 hours ago -
No Newsletters since 27 January
by
rog7
4 hours, 34 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
1 day ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
23 hours, 11 minutes ago -
Google One Storage Questions
by
LHiggins
7 hours, 10 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
14 hours, 25 minutes ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 5 hours ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 14 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
1 hour, 23 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 22 hours ago -
Firefox 137
by
Charlie
1 hour, 21 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days, 3 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days, 3 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days, 3 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 23 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.