-
WSkbelesky
AskWoody LoungerA user defined function like this one may work.
Function USD_SUMOFCELL_AY5()
Dim XSUM
Dim SHXSUM = 0
For Each SH In ActiveWorkbook.Sheets
XSUM = XSUM + SH.Range(“AY5”)
Next SH
USD_SUMOFCELL_AY5 = XSUMEnd Function
Reference it from any worksheet with the formula
=USD_SUMOFCELL_AY5() -
WSkbelesky
AskWoody LoungerMake a pivot table. Use “the list:” as the row source and “Count of the list:” as the data field. Leave the column source blank.
-
WSkbelesky
AskWoody LoungerGood luck. Excel is a great general purpose application so it might prove adequate.
Personally, I’ll stick with QuickBooks.
-
WSkbelesky
AskWoody LoungerJuly 1, 2001 at 3:08 am in reply to: Suggestions for locating consulting/contract work (97/2000) #531541ITT Tech is the most widely known community-type college in Indy. They frequently advertise for instructors of Use-Of-MSOffice classes.
You might consider a temp agency. I twice temp’d as an accounting geek, only to be picked up full time as an IT geek.
Indiana is not the Hi Tech Mecca that most people think it is. Sometimes the IT section of the Sunday Ads is much less than one page. And they still list all things IT under the “Computer” heading.
Don’t get me wrong. I love Indiana. It is my home. We keep things simple here. Like the rules for the Indy 500: 1. Drive fast. 2. Turn left.
-
WSkbelesky
AskWoody LoungerThanks Mark. That link is very helpful.
Looks like I can realize a lifelong dream:
Captain Piccard will command “Engage!” whenever the “Go” button is clicked. -
WSkbelesky
AskWoody LoungerYou’re right. It’s the “Default Sound” in the control panel.
I wonder if there is a sound object collection that one can reference to associate sounds to events?
-
WSkbelesky
AskWoody LoungerSee return attachment.
I used the histogram tool from the analysis took pack (add-in under Tools Menu). Then plotted the Bin (x axis) against Frequency (y axis). The Histo tool will graph for you as well.
You can easily see the distinctive bell curve of a mostly normal distribution. How normal is it? Give the Descriptive Statistics tool a try. It will give you the quantitative stuff statisticians crave.
-
WSkbelesky
AskWoody LoungerThis article deals with your situation.
http://support.microsoft.com/support/kb/ar…s/Q171/9/55.aspGood luck.
-
WSkbelesky
AskWoody LoungerThanks Rory. I was doing it the hard way. Your suggestion works great.
-
WSkbelesky
AskWoody LoungerHere’s the SQL for a query like I described. I use Table1 as the table and Ad1 thru Ad6 as the fields. Readability of this syntax is less than favorable, but it is quite unambiguous. (That’s good)
SELECT Table1.*, Cust_Instr("District",[Table1]![Ad1],[Table1]![Ad2],[Table1]![Ad3]) AS District, Cust_Instr("TX",[Table1]![Ad3],[Table1]![Ad4],[Table1]![Ad5],[Table1]![Ad6]) AS TX FROM Table1;
Put that verbage into a query by using the SQL VIEW option under the VIEW menu when you have the query design screen open. Just paste the verbage over whatever is in there. Then replace table and field names as needed.
-
WSkbelesky
AskWoody LoungerI spoke of the excel macro recorder. Thanks for the clarification.
-
WSkbelesky
AskWoody LoungerJaz,
Will this query idea work?Do a Select * of the table into a new query. Then add two new fields: District and TX, which are determined using the following function:
*—————— Put in a public module —————————*
Function Cust_Instr(String_To_Find, F1, F2, F3, Optional F4) As Boolean
‘Returns true if the text String_To_Find is found
‘among the arguments F1 thru F4.
Dim f_All, i
Cust_Instr = FalseIf IsMissing(F4) Then F4 = Null
f_All = F1 & F2 & F3 & F4
i = InStr(f_All, String_To_Find)
If Not (i = 0) Then Cust_Instr = True
End Function
*————————————-*The expression for the district field is District:= Cust_Instr(“District”, YourTable!Field1, YourTable!Field2, YourTable!Field3)
Likewise for TX:= Cust_Instr(“TX”, YourTable!Field4, ….)Base the report off the query instead of the table. You should be able to group on District (true or false) and TX (true or false).
-
WSkbelesky
AskWoody LoungerMoving the code from excel VBA to an access module is something I would strive to do. It can be tricky, though. You have to know your excel objects and reference them with object variables in access — something that is not exactly intuitive. Start with something simple and get it working from access. Use the macro recorder and the object browser. Learn as you go.
Before long you will cast recordsets into ranges and spin them into pivot tables with charts and trendlines and… You get the idea. Good luck.
-
WSkbelesky
AskWoody LoungerMy preference is to write the excel macro in access and run from there, but you probably have a lot of work tied up in this already. So here’s something that should suit your situation.
Sub Run_Excel_Macro() ‘TransferredSS As String) ‘The argument is the path and file name of the
‘workbook you created with the TransferSpreadSheet Action. I have assumed the action has
‘already been done.‘Set a reference to excel in order to run this macro. From the Tools menu,
‘ select References…. , then check the MS Excel x.0 Object Library box.
Dim xla As Excel.Application
Dim xlsM As Workbook ‘this is for the workbook that contains the macro that you want to run.
Dim xls As Workbook ‘for the Transfered SpreadsheetDim TransferredSS As String
Dim MacroWBPathAndFileName As String ‘for the Macro WorkBook Path And File Name
Dim MacroName As String ‘for the name of the macro to run
‘Lets give these some value
MacroWBPathAndFileName = “C:My DocumentsExcelTest1.xls”
MacroName = “Macro1”
TransferredSS = “C:My DocumentsExcelBook1.xls”‘Launch Excel
Set xla = New Excel.Application
‘Make it visible
xla.Visible = True‘Open the Transferred Spreadsheet
Set xls = xla.Workbooks.Open(TransferredSS)‘Open the macro workbook
Set xlsM = xla.Workbooks.Open(MacroWBPathAndFileName)
‘While xlsM should be the active workbook, lets just make sure because the “Run” command
‘ that follows is meaningful only in the context of the active sheet.
xlsM.Activate
xla.Run MacroName‘The macro runs. Whether control returns to Access automatically depends on your excel macro.
‘Assuming you want to save and close everything,
xls.Save: xls.Close
xlsM.Save: xlsM.Closexla.Quit
‘That’s all folks.
End Sub -
WSkbelesky
AskWoody LoungerPlease clarify:
Are you trying to add an access table as a new worksheet to an existing excel file?
Or do you want to append an existing worksheet of an excel file with the data in an access table?
![]() |
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
-
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
2 hours, 49 minutes ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
4 hours, 16 minutes ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
3 hours, 26 minutes ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
13 hours, 34 minutes ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
14 hours, 40 minutes ago -
Disengage Bitlocker
by
CWBillow
4 hours, 38 minutes ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
16 hours, 40 minutes ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 hour, 21 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
23 hours, 55 minutes ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
23 hours, 57 minutes ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
1 day, 3 hours ago -
New PC transfer program recommendations?
by
DaveBoston
4 hours, 52 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
1 day, 7 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
1 day, 7 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
20 hours, 17 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
19 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
9 hours, 13 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
2 days, 2 hours ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
1 day ago -
System Restore and Updates Paused
by
veteran
2 days, 5 hours ago -
Windows 10/11 clock app
by
Kathy Stevens
1 day, 16 hours ago -
Turn off right-click draw
by
Charles Billow
2 days, 8 hours ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
2 days, 12 hours ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
1 day, 6 hours ago -
Master patch listing for June 10, 2025
by
Susan Bradley
2 days, 13 hours ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
1 day, 16 hours ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
2 days, 19 hours ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 7 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
3 days, 2 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
1 day, 19 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.