-
WSandrewgibsonsw
AskWoody LoungerWhich version are you usuig?
Sorry, should have mentioned – 2007. Andy.
-
WSandrewgibsonsw
AskWoody LoungerLet’s say the list is in cell A1. Use the following code.
Dim arr As Variant
arr = Split(Range(“A1”), “,”)Note: by default, the array index will be zero-based, i.e. the first element is arr(0).
The index of the last element is UBound(arr).That’s great, thanks. I was trying to look at each character in turn to find the commas, but
it was getting a bit messy. Andy. -
WSandrewgibsonsw
AskWoody LoungerSelect Pivot Table | AutoCalc | Average, or click the AutoCalc button on the Pivot Table toolbar and select Average.
Thank you. I note that I also have to click on a salary otherwise AutoCalc is greyed out.
Andy. -
WSandrewgibsonsw
AskWoody LoungerNo, you have to select records from a table or stored query. You could create a temporary table.
That’s a pain.. but thank you very much again. Andy.
-
WSandrewgibsonsw
AskWoody LoungerYou could use DoCmd.TransferSpreadsheet in Access to import from an Excel workbook, or DoCmd.TransferText to import directly from a .csv file.
If you want, you can use Automation to do this from Excel.Alternatively, you could use ADO – it can run SQL on an Excel worksheet or .csv file.
Thank you very much. Andy.
-
WSandrewgibsonsw
AskWoody LoungerI had assumed from your description that you had already imported the CSV file into an Access table named tblImport, and wanted to transfer its records to a new or existing table.
No, sorry. The csv data is currently in an Excel worksheet. I now need, from Excel, to either create a new
Access table or append to an existing one. Andy. -
WSandrewgibsonsw
AskWoody LoungerYou could run an SQL statement:
Dim strSQL As String
Dim strNewTable As String
Dim strCSVTable As String
strNewTable = “tblNew”
strCSVTable = “tblImport”
strSQL = “SELECT * INTO [” & strNewTable & “] FROM [” & strCSVTable * “]”
CurrentDb.Execute strSQL, dbFailOnErrorTo append to an existing table, use
strSQL = “INSERT INTO [” & strNewTable & “] SELECT * FROM [” & strCSVTable * “]”
You can specify columns instead of *.
Thank you. Is tblImport an Excel range name? Andy.
-
WSandrewgibsonsw
AskWoody LoungerIn Design View of the Macro, go to the Design ribbon and in the Show/Hide Ribbon and click on “Show All Actions”.
Thank you! That seems an odd design change though. Perhaps the actions that are then shown
are considered to be “less safe”? Otherwise it seems pointless. Andy. -
WSandrewgibsonsw
AskWoody LoungerIt should still be there: Access 2007 Developer Reference > TransferSpreadsheet Macro Action.
But this article states “Note This action will not be allowed if the database is not trusted.” So make sure that your database is trusted.Thank you. Although I’ve trusted my folder location and closed re-opened Access, the
TransferSpreadsheet action doesn’t appear for a new macro.
Do you think this means it’s only available now using VBA and DoCmd? Andy. -
WSandrewgibsonsw
AskWoody LoungerTry code like this:
Code:Dim lngSection As Long lngSection = Selection.Information(Type:=wdActiveEndSectionNumber) Selection.InsertBreak Type:=wdSectionBreakNextPage With ActiveDocument.Sections(lngSection + 1).Headers(wdHeaderFooterPrimary) .LinkToPrevious = False .Shapes(lngSection + 1).Delete .Range.Text = "My new header text" End With
Note: working with shapes in headers and footers is very tricky because all shapes in all headers and footers form a single collection.
Thank you very much. I shall explore this. Andy.
-
WSandrewgibsonsw
AskWoody Lounger.. should have mentioned this is for Word 2003,
and that the final result is that the headers for section 1 and 2 are in the wrong order.
Andy. -
WSandrewgibsonsw
AskWoody LoungerThank you – exactly what I needed to know. Andy.
-
WSandrewgibsonsw
AskWoody LoungerThank you.
So if, for example, I wanted to change the default font for everyone I would need to
distribute a new copy of Normal.dot and get people to replace their own Normal.dot?
Andy. -
WSandrewgibsonsw
AskWoody LoungerYour first version works fine for me in 2003! Which SPs do you have installed? (I’m only on SP2 here)
I’m using a version without Service Packs. Perhaps I should use the Advanced Filter
version – they always seem more robust that using AutoFilter. Andy. -
WSandrewgibsonsw
AskWoody LoungerNo it shouldn’t. Can you post the workbook (removing any confidential info)?
Attached.
I’ve got it to work using Advanced Filter, but would prefer that the first version worked.
Thanks, Andy.
![]() |
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
-
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
44 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 hour, 50 minutes ago -
0Patch, where to begin
by
cassel23
1 hour, 36 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
15 hours, 28 minutes ago -
89 million Steam account details just got leaked,
by
Alex5723
3 hours, 14 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
1 day ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
15 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 hours, 7 minutes ago -
Installer program can’t read my registry
by
Peobody
3 hours ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
12 hours, 47 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
20 hours, 7 minutes ago -
False error message from eMClient
by
WSSebastian42
1 day, 11 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 20 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 21 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
18 hours, 2 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
2 days ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
1 day, 2 hours ago -
Outdated Laptop
by
jdamkeene
2 days, 6 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 11 hours ago -
Another big Microsoft layoff
by
Charlie
2 days, 11 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
8 hours, 51 minutes ago -
May 2025 updates are out
by
Susan Bradley
10 hours, 44 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days, 17 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days, 17 hours ago -
Drivers suggested via Windows Update
by
Tex265
2 days, 17 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
13 hours, 27 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
3 days ago -
Apple releases 18.5
by
Susan Bradley
2 days, 18 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
3 days, 1 hour ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
3 days, 2 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.