-
WSptebo
AskWoody LoungerThat worked. Thanks for all your help.
-
WSptebo
AskWoody LoungerI think that the main problem I’m having is that I don’t know what I’m doing as far as writing code goes. Here is the code that I’m trying. It returns the correct value when I rest my mouse on it in the code, but goes to my C: drive when I actually run the command.
Private Sub Command29_Click()
Dim xlApp As New Excel.Application
Dim strfolder As String
strfolder = “g:publicmoxnesscustomers” & Me!Customer Me!CustomerPartNo
With xlApp
.Visible = True
.Dialogs(xlDialogOpen).Show strfolder
End With
Set xlApp = Nothing
End Sub -
WSptebo
AskWoody LoungerI have the same concerns regarding using customer names as folder names and will be discussing them with the department that has requested the database.
I do have one other question. (Hopefully this will be the last. Thanks for your patience.) Is there a subdirectory limit to the strFolder code? I’m trying to go one folder deeper in my strFolder path using the code that you gave me and when I run the code, the File Open screen that appears is my C: drive instead of the appropriate G: folder. The folder that I’m trying to open is g:publiccompanycustomerpart number. Using the code that you gave me, I can only get as far as the customer folder in the g: drive.
-
WSptebo
AskWoody LoungerGreat. One more little thing they’ve thrown at me – they’ve decided that they’re going to keep most of the Excel information in individual customer folders instead of separate Quote and Item Number folders. How can I get to a File Open screen when the folder that I’m accessing varies depending on the customer that appears in my Customer text box?
Thanks once again for your help.
-
WSptebo
AskWoody LoungerAny chance you can help me with something else? They’ve changed how they want to use the database (again!). They don’t want specific Excel files to open, they want to stop at the Open screen so that the user can select which file they want opened. Is there a way to do this?
-
WSptebo
AskWoody LoungerOne more question – will I have to activate the Microsoft Excel 8 Object library on all of the computers that will be using this database in order for them to use the command buttons that open the Excel spreadsheets?
-
WSptebo
AskWoody LoungerYour code worked perfectly. Thanks
-
WSptebo
AskWoody LoungerThe temporary directory for the Excel files is R:pteboFMP. There are separate subdirectories called Quote and Part Number. I’m going to have to move the files and change the referenced paths in the code after the file is moved to our appropriate divisions server.
The Access text box containing the quote number is named QuoteNo; the part number is FMPItemNo. If the quote number is 2345, the Excel file will be 2345.xls. The same goes for the part number (FMPItemNo).
Thanks for your help.
-
WSptebo
AskWoody LoungerThat would probably work. Is there any limitation to the number of files that can be listed?
-
WSptebo
AskWoody LoungerThanks. I’ll give it a try.
-
WSptebo
AskWoody LoungerThanks. It works!
-
WSptebo
AskWoody LoungerHere is the macro. The name of the sheet that I want to do the Find on is “XRef”.
Sub FindCustomer()
‘ keyboard shortcut: Ctrl+Shift+CSheets(“XRef”).Select
Application.Dialogs(xlDialogFormulaFind).ShowEnd Sub
-
WSptebo
AskWoody LoungerNo it doesn’t. Do I need to specify a range when opening Find through a Macro?
-
WSptebo
AskWoody LoungerCorrection. This opens the Find form, but it won’t actually find anything within the spreadsheet. I added a line to the macro to make sure that it was looking in the correct sheet, but it didn’t make a difference. When I do a Find using Ctrl+F that works.
-
WSptebo
AskWoody LoungerThat worked. Thanks.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 hour, 20 minutes ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 hours, 2 minutes ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
6 hours, 48 minutes ago -
Windows Update orchestration platform to update all software
by
Alex5723
11 hours, 21 minutes ago -
May preview updates
by
Susan Bradley
12 hours, 59 minutes ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
55 minutes ago -
Just got this pop-up page while browsing
by
Alex5723
3 hours, 33 minutes ago -
KB5058379 / KB 5061768 Failures
by
crown
37 minutes ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
40 minutes ago -
At last – installation of 24H2
by
Botswana12
1 day, 2 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
27 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
1 day, 15 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 8 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
2 days, 4 hours ago -
Another test post
by
gtd12345
2 days, 4 hours ago -
Connect to someone else computer
by
wadeer
1 day, 23 hours ago -
Limit on User names?
by
CWBillow
2 days, 2 hours ago -
Choose the right apps for traveling
by
Peter Deegan
1 day, 16 hours ago -
BitLocker rears its head
by
Susan Bradley
1 day ago -
Who are you? (2025 edition)
by
Will Fastie
23 hours, 2 minutes ago -
AskWoody at the computer museum, round two
by
Will Fastie
1 day, 18 hours ago -
A smarter, simpler Firefox address bar
by
Alex5723
2 days, 14 hours ago -
Woody
by
Scott
3 days ago -
24H2 has suppressed my favoured spider
by
Davidhs
23 hours, 42 minutes ago -
GeForce RTX 5060 in certain motherboards could experience blank screens
by
Alex5723
3 days, 14 hours ago -
MS Office 365 Home on MAC
by
MickIver
3 days, 8 hours ago -
Google’s Veo3 video generator. Before you ask: yes, everything is AI here
by
Alex5723
4 days, 4 hours ago -
Flash Drive Eject Error for Still In Use
by
J9438
23 hours, 27 minutes ago -
Windows 11 Insider Preview build 27863 released to Canary
by
joep517
4 days, 23 hours ago -
Windows 11 Insider Preview build 26120.4161 (24H2) released to BETA
by
joep517
4 days, 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.