-
WSMelanieB
AskWoody LoungerCorrection: Copied/pasted your code – changed the first line to: Sub cmdOpen_PDF_Click()
-
WSMelanieB
AskWoody LoungerOk I tried it, Hans. I’ve done something wrong, though. When I click the command button I get the message, ‘the object doesn’t contain the Automation object ‘Open_PDF.’
I am very very basic when it comes to inserting and using code, so please excuse my ignorance.
here’s what I did:
Clicked on Modules, New
Copied/pasted your code – changed the first line to: Sub cmdOpen_PDF()
Saved it
Closed the windowCreated a New Macro (clicked Macros, new)
Under Action, clicked RunCode
Function name at bottom I typed Open_PDF
Saved macro
Closed screenCreated cmd button on form with the command button wizard and picked Miscellaneous, Run Macro and picked the Open_PDF macro.
Tested the button and got an Action Failed screen.
Macro name: Open_PDF
Condition: True
Action Name: RunCode
Arguments: Open_PDFPressed the Halt button
received the error message.Soooo what did I do wrong?
Thanks for your patience.
-
WSMelanieB
AskWoody LoungerThat all makes perfect sense to me, Hans. Thank you. I’ll let you know how it works. You are right, the admins did not customize the front end. So yep, I can modify it and send it to them. Thank you!!
-
WSMelanieB
AskWoody LoungerThanks. I am the IT Support Trainer, so I will be the one users call to ask why this doesn’t work or that didn’t get copied and how to do this or that in Outlook. I plan to hold many many pre-release training classes as well as ongoing training. So I need to know the gotcha’s ahead of time. What can we do now in GroupWise that we won’t be able to do in Outlook? What processes will change?
Our network team will be doing the actual migration, but I need to know the gotcha’s ahead of time.
Thanks for the links. I’ll take a look at them and see if they help.
-
WSMelanieB
AskWoody LoungerSo much more elegant than the mess I made. Thank you. I see where my IF statement was messing up too. Thank you, Hans!
-
WSMelanieB
AskWoody LoungerThank you, but I don’t see an attachment, Hans.
-
WSMelanieB
AskWoody LoungerNever mind.. I am rescinding this post. In talking with the user, it appears we cannot format the data correctly to do the calculation in the pivot table. Thanks anyway for your time!
-
WSMelanieB
AskWoody LoungerThese are students attending classes .. some classes are one day, some are a week long, and some are for 3 – 6 hours a week for several months. On this particular line, I know she went to this class two nights a week for several months, but I’m not sure how many hours each night she went. For argument’s sake, let’s assume she went 6 hours a week for 12 weeks = 72 hours of training time.
I have a similar database that tracks computer training and I listed each session separately. Should I have her do that with her database? It’s easier for me to calculate time with each session separately. But, she has something like 600 records and she didn’t want to modify it. However, I don’t see any way around that.
-
WSMelanieB
AskWoody LoungerHere it is. Thanks, Hans. I put the sample data in an Excel spreadsheet because I had to modify the names in it for confidentiality. This is a direct pull from a query (with just the student names changed). I can send the db offline if that will help, but I can’t post it. Thanks.
-
WSMelanieB
AskWoody LoungerI found this thread and I think it is what I’m trying to do, but I’m having problems getting it to work. I am pretty code illiterate, so please be patient with me.
My file is names “Sustations” and the worksheet is called “Inspection report”. The users will be opening this worksheet as a template, making their edits and then saving it.
I would like to save the workbook saved with a new name each time someone uses the form. I’d like the name to be a combination of data picked from a list in C1 and the date entered in T1.
I’d like it to be saved on our network drive (for example, M:MelanieForms).
How can I modify this code to work? And, how do it put it in the workbook. I know to press Alt+F11 to get to the code, but I don’t know where to put it after that.Thank you for any help you can give me.
-
WSMelanieB
AskWoody LoungerBingo. Jeesh. Thank you!! I read the help screen in Access, but I guess I misinterpreted what it said. Thank you.
-
WSMelanieB
AskWoody LoungerAugust 21, 2008 at 6:29 am in reply to: Mail Merge letters to landlords with multiple prop (2003) #1122529Hans, this worked so well. I’m thrilled with it. The user has shown me, though, that if a letter extends to 2 pages, there is a header on the 2nd page. I can’t see it until after the merge is done, so I can’t edit it for all the records. The user has been deleting the header on each record that has one – a pretty tedious process for a 700-page merge. We either want a way to not have the header on the 2nd page or can you tell me how to edit it on the main document before we merge?
-
WSMelanieB
AskWoody LoungerI’m sorry I didn’t get back to this sooner. I’ve recreated the document (it’s going to be a template once I get the TOC issue working). I created each of them using Insert, referece, Table of contents, and the options. I’m attaching it so you can take a look. I have done it this way on many many reports before and have been able to update each one separately before. In the last month, this same issue has happened on 5 other documents that other people have created. They all asked me why it’s different now. I do not have a clue.
-
WSMelanieB
AskWoody LoungerThe director said she wants a series of tables below one another in one worksheet.
-
WSMelanieB
AskWoody LoungerI agree. But that’s not an option. I already asked that question. Long winded reply that amounted to “No.”
![]() |
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
-
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
1 hour, 1 minute ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
3 hours, 24 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
6 hours, 14 minutes ago -
0patch
by
WSjcgc50
2 hours, 42 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
3 hours, 20 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
9 hours, 13 minutes ago -
Problem opening image attachments
by
RobertG
10 hours, 48 minutes ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 1 hour ago -
It’s Identity Theft Day!
by
Susan Bradley
5 hours, 50 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 6 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 6 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 7 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 3 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 11 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 11 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
8 hours, 40 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
3 hours, 14 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
9 hours, 21 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
10 hours, 33 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 2 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 6 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 16 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 23 hours ago -
April’s deluge of patches
by
Susan Bradley
3 hours, 6 minutes ago -
Windows 11 Windows Updater question
by
Tex265
3 hours, 28 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 8 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 12 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 19 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 4 hours ago -
Align objects on a OneNote page
by
CWBillow
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.