-
WSMichael Evans
AskWoody LoungerIf there is data beside the column you select, XL97 warns you there is data next to your selection and it will not be sorted.
-
WSMichael Evans
AskWoody LoungerAgreed Stephen, I had never used the formula so I had not looked at it critically.
Since XL spits the dummy if you try to make a PT with a column with no heading, counting the number of non-blank cells in Row 1 will always be a valid way of determining the number of columns. The easiest way of doing this is COUNTA($1:$1). So if you make sure there are no blanks in Column A the following should define the datarange alright:
Datarange = OFFSET($A$1,0,0,COUNTA($A:$A),COUNTA($1:$1)
Defining data ranges if there may be blank rows present is a bit of a problem, the following solution is not terribly elegant but I have not been able to make it fail yet.
Start your data range in cell B1. In cell A1 put the following formula:
=IF(COUNTA(B1:IV1)>0,ROW(),0)
fill down to the end of Column A. Every row with an entry now has its Row number in Column A. All other rows have 0 in Column A. Now define the datarange:
=OFFSET(Sheet1!$B$1,0,0,(MAX(Sheet1!$A:$A)),COUNTA(Sheet1!$B$1:$IV$1))
Of course if you have other data on your sheet, in rows not used in your data range, you will have trouble. This includes your PT, so make sure you do not put it on the same sheet your data is on!
-
WSMichael Evans
AskWoody LoungerTried it on another printer (Xerox 470ST) and it printed fine. So it looks like a printer problem, which surprises me as the problem occurred with an HP LaserJet 5Si which normally is trouble free, and the spreadsheet is not very big.
-
WSMichael Evans
AskWoody LoungerAndrew:
The lines are visible on screen, and in print preview.
I tried borders round the cells, it didn’t solve the problem.
Lief:
Yes, cells 1-11 are gridded normally. Cell 12 which is about 25mm wide has lighter gridlines for 10mm from the left side, then blank. The heavier lins around subtotals make it as far as cell 14 then do the same thing. The vertical gridlines are normal.
There are no graphics on the sheet.
The top cell is merged, full width of the spreadsheet.
No the cells are not overfilled with data.
Legare I will try it out on another computer and printer.Thanks everyone for your replies.
-
WSMichael Evans
AskWoody LoungerAssuming your fields are separated by spaces, this macro will do what you want. First make sure you have enough blank columns to receive the parsed addresses, then select all the addresses, then run the macro.
After you tell it how many fields you want for the State, postcode, etc., it starts at the end of each address and runs backwards until it reaches a space, puts this string in a new cell, then repeats the process until it has filled the number of fields chosen. It then puts whatever is left in the column next to the unparsed addresses.
Sub AddressParse()
‘
Do Until NumFields >= 1
NumFields = (InputBox(“How many fields AFTER the city name?”))
LoopSet selrange = Selection
For Each Cel In selrangegg = Cel.Value
Cel.Value = “=Trim(“”” & gg & “””)” ‘removes excess spacesm = Val(NumFields)
p = m + 1
sl = Len(Cel.Value)
For n = sl To 1 Step -1
r = sl – nIf Mid(Cel.Value, n, 1) = ” ” Then
Cel.offset(0, p).Value = Mid(Cel.Value, n + 1, sl – n)
sl = n – 1
m = m – 1
p = p – 1
If m = 0 Or n = 1 Then
Cel.offset(0, p).Value = Mid(Cel.Value, 1, n – 1)
n = 1
End If
End IfNext n
Next Cel
End Sub -
WSMichael Evans
AskWoody LoungerI can see a potential problem here as you are looking at a column in the body of your data, which might contain blank cells. CountA counts only the data containing cells, so your defined range might be some rows short of the whole database. (PT’s still work OK if there are some blank cells in the data).
The following, very similar, solution was given by DanielD Maramba in the old Lounge:
Datarange = Offset($A$1,0,0,CountA(Offset($A$1,0,0,9999,1)),5).
If you have more than 9999 rows your need to increase this figure.
The safest way to find the last row in a sheet is to go to the end row (65536 in XL97, 2000?) and then come up to the last used row above this, cannot see any reason why this could not be incorporated in the datarange definition.
-
WSMichael Evans
AskWoody LoungerIt is quite possible to open a different .xlb file whilst XL is running, if you do this the toolbar/button set associated with that .xlb file will be displayed. This is quite useful if you often use a particular set of buttons for certain types of applications. If you close XL at this stage your normal .xlb will be overwritten, therefore make sure you have a copy of your this as Standard.xlb.
In XL97 there is more information on this topic under toolbars/About toolbars, and toolbars/multiple configurations.
Custom lists are also stored in .xlb files (plus something else that I cannot recall -this was discussed in the old lounge).
-
WSMichael Evans
AskWoody LoungerThis is based on XL97 as I don’t have XL2000.
If your updated data are in the same range as your old data just click the Refresh button.
If they are in a different range, call up the PT Wizard, go back to the data source page, enter the new range, and click the finish button.
If you are just adding more data to the existing data you can automatically add this to your PT using the offset function in the data source page. -
WSMichael Evans
AskWoody LoungerSelect the cells you want to convert to Proper then run this macro:
Sub Proper()
For Each cel In Selection
gg = cel.Value
cel.Value = “=Proper(“”” & gg & “””)”Next cel
End Sub
-
WSMichael Evans
AskWoody LoungerFor an excellent alternative tweaking program see XTeq X-Setup in Software Finds.
-
WSMichael Evans
AskWoody LoungerThere is a Paste Special/Values button via the Tools Menu, Customise/Commands/Edit, worth dragging onto a toolbar if you do a lot of pasting Values Only.
-
WSMichael Evans
AskWoody LoungerI read in another forum about a hardware problem where the fan was still running, but too slowly. Replacing it with a more powerful fan cured the problem.
-
WSMichael Evans
AskWoody LoungerThis was discussed at length in the old Lounge, including how to set up Live Scrolling with the scroll bar (is this an option in W2000?). With LS you can see where you are getting to in your document, combine this with the click – shift/click method of selection.
Other options include a wheel mouse, and MouseImp (http://www.tv4studios.com[/url%5D) a great freebie that gives you live scrolling by holding down the right mouse button, saves having to go to the scroll bar to scroll. Also (in W97 at least) AutoScroll (Tools/Customise/Tools, drag the AutoScroll button onto a toolbar) which is a bit weird but give it a try.
-
WSMichael Evans
AskWoody LoungerYou have to grab the edge of the column you want to move with the arrow rather than the white cross. Holding down Shift and dragging will then do what you want.
-
WSMichael Evans
AskWoody Lounger
![]() |
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
-
Automatic Toggle code for pages and bookmarks for Table of Content (Awaiting moderation)
by
switchtolinux
22 minutes ago -
April 2025 Office non-Security updates
by
PKCano
7 hours, 2 minutes ago -
Microsoft wants to hear from you
by
Will Fastie
8 hours, 14 minutes ago -
Windows 11 Insider Preview Build 22635.5160 (23H2) released to BETA
by
joep517
10 hours, 35 minutes ago -
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
16 hours, 6 minutes ago -
Test post
by
Susan Bradley
18 hours, 19 minutes ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
20 hours, 1 minute ago -
SSD shuts down on its own
by
CWBillow
11 hours, 25 minutes ago -
OneDrive File Sharing Changes
by
David Clark
1 day, 4 hours ago -
OneDrive File Sharing Changes
by
David Clark
1 day, 6 hours ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
6 hours, 11 minutes ago -
Today is world backup day
by
Alex5723
21 hours, 45 minutes ago -
Windows .exe on Mint
by
Slowpoke47
1 day, 7 hours ago -
Reviewing your licensing options
by
Susan Bradley
17 hours, 26 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
2 hours, 58 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
10 hours, 45 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
8 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
1 day, 3 hours ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
1 day, 1 hour ago -
YouTube Ad Blocker Blocker
by
bbearren
1 day, 1 hour ago -
Obscure historical facts about Windows
by
Cybertooth
1 day, 3 hours ago -
Microsoft Backup
by
Linda2019
19 hours, 17 minutes ago -
What is the best notepad++ version for W7?
by
Picky
1 day, 2 hours ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
2 days, 12 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
2 days, 12 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
3 days, 7 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
3 days, 7 hours ago -
Microsoft vs Passwords
by
Alex5723
15 hours, 10 minutes ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
3 days, 11 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
3 days, 11 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
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.