-
WSLindaR
AskWoody LoungerThank you Steve. That worked. Thanks for your help.
-
WSLindaR
AskWoody LoungerI am getting an error 2501 The outputTo action was cancelled.
Here is my module that I created. I created a form with a command button that calls the module.
Public Sub ExportReportsPDF()
Dim zDestFolder As String
Dim zReportName(1 To 13) As String
Dim iCntr As IntegerzReportName(1) = “01_Total All Members ReportAll”
zReportName(2) = “01_Total All Members ReportExcludesPre65”
zReportName(3) = “01_Total All Members ReportExcludesPre65-NONOPEB”
zReportName(4) = “01_Total All Members ReportExcludesPre65-OPEB”
zReportName(5) = “01_Total All Members ReportNON-OPEB”
zReportName(6) = “01_Total All Members ReportOPEB”
zReportName(7) = “01_Total All Members ReportPre65”
zReportName(8) = “01_Total All Members ReportPre65andNONOPB”
zReportName(9) = “01_Total All Members ReportPre65andOPEB”
zReportName(10) = “03RPt_CntbyProduct_BlueCare2”
zReportName(11) = “03RPt_CntbyProduct_CompPPO2”
zReportName(12) = “03RPt_FirstStBasicandCDHGold”
zReportName(13) = “03RPt_Medicfill and POS”zDestFolder = ” V:CORPDATA17AdminLindaDelawareReportPDFFolder”
For iCntr = 1 To UBound(zReportName)
DoCmd.OutputTo acOutputReport, zReportName(iCntr), acFormatPDF, _
zDestFolder & zReportName(iCntr) & “.pdf”Next iCntr
End Sub
I named the module ExportPDF
-
WSLindaR
AskWoody LoungerThank you for your help. Will try this on Monday.
-
WSLindaR
AskWoody LoungerI put the code in a module and when you say call it from the click event, what does that look like? Sorry, I am not that good at VBA.
-
WSLindaR
AskWoody LoungerI was going to create a form and put the code in the on click event of a command button. Can I do this?
-
WSLindaR
AskWoody LoungerAccess 2007 but will be upgrading to Access 2010 in near future. For now 2007.
-
WSLindaR
AskWoody Loungerthank you so much. Saved me hours of work.
-
WSLindaR
AskWoody LoungerCan’t you just select the summation symbol on the top and hit enter. If you look at the calculation, it uses =subtotal(9,c2:C100) for example
-
WSLindaR
AskWoody LoungerHow about a pop-up calendar. The attached spreadsheet describes how to do this in Excel 2003. Not sure about 2007. In the code, you have to format the column to the date format you want.
-
WSLindaR
AskWoody LoungerRight click one of the total lines.
Click on Field Settings
Click None. -
WSLindaR
AskWoody Lounger=Date(Mod(A2, 10000),TRUNC(A2 / 1000000), MOD(TRUNC(A2 / 10000), 100))
Copy down
-
WSLindaR
AskWoody LoungerHighlight and Right click the column you want to enter the dates.
Select Format Cells.
On the number tab choose custom and enter in the Type Box 00/00/0000.
It looks like a V between the 0s but they are forward and backward slashes. If you want to use the date values in calculations, you will need to add a column containing formulas that will translate them into actual dates for Excel.If you want that formula, let me know. -
WSLindaR
AskWoody LoungerThis may be too simplistic but have you tried:
Put a + sign in the cell you want the data to appear
Go to the other spreadsheet and highlight the cell that has the data you want
Hit enter
This will take you back to the first spreadsheet and the info will appear. -
WSLindaR
AskWoody LoungerSince it is a zip code and a set number of characters try this:
In a new column put =TEXT(A1,”000000″) and copy down.
Then highlight that column and
EDIT
copy
Paste Special
Choose valuesThis removes the calculation. Delete the original column.
-
WSLindaR
AskWoody LoungerI figured out how to prevent the #REF! error from showing. Just in case someone else has this problem.
=IF(ISERROR(SUM(E5,E7,E9,E13,E23,E27)),” “,SUM(E5,E7,E9,E13,E23,E27))
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Network Issue
by
Casey H
14 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
5 hours, 42 minutes ago -
May 2025 Office non-Security updates
by
PKCano
6 hours, 8 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
8 hours, 4 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
7 hours, 19 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
10 hours, 16 minutes ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
10 hours, 17 minutes ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
17 hours, 38 minutes ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
2 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 4 hours ago -
How much I spent on the Mac mini
by
Will Fastie
4 hours, 24 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
21 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
1 day, 10 hours ago -
Setting up Windows 11
by
Susan Bradley
5 hours, 54 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 6 hours ago -
Powershell version?
by
CWBillow
1 day, 7 hours ago -
SendTom Toys
by
CWBillow
3 hours, 45 minutes ago -
Add shortcut to taskbar?
by
CWBillow
1 day, 11 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 3 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 2 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 9 hours ago -
We live in a simulation
by
Alex5723
2 days, 17 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 4 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 6 hours ago -
Microsoft is killing Authenticator
by
Alex5723
7 hours, 54 minutes ago -
Downloads folder location
by
CWBillow
3 days, 12 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 8 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
3 days, 3 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
3 days, 3 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 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.