-
WSPaul Lautman
AskWoody LoungerNot just that, but if I specify Fixed Width when using texttocolumns, Excel assumes that regardless of the width of columns that I set, I really want it to remove leading blanks!
-
WSPaul Lautman
AskWoody LoungerSheesh, it just shouldn’t be this difficult!
Can’t Microsofty understand that sometimes people would like to decide for themselves what they want to do!
Anyway that works.
I’d still like to know why the paste sometimes does one thing and sometimes does another.
But anyway, thank you once more Hans for all your assistance.
-
WSPaul Lautman
AskWoody LoungerI just tried changing the deler to | and executiong this command
Workbooks.OpenText Filename:=varFile, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar _
:=”|”, FieldInfo _
:=Array(Array(1, 2), Array(2, 2), Array(3, 2), Array(4, 1), Array(5, 1), Array(6, 2)), _
TrailingMinusNumbers:=Trueand it totally ignores the parsing information!
It OpenText just broken?
Here is some of the input data:
01| |M|1996-08-01|2099-12-31|0123456789 01| |1|1996-08-01|2099-12-31|0123456789 01| |3|1996-08-01|2099-12-31|0123456789 02| |M|1996-08-01|1999-06-03|01234569 02| |1|1996-08-01|1999-06-03|01234569 02| |3|1996-08-01|1999-06-03|01234569 03| |M|1996-08-01|2004-08-20|01234569 03| |1|1996-08-01|2004-08-20|01234569 03| |3|1996-08-01|2004-08-20|01234569 03|01|M|2004-08-10|2004-08-19|01234569 03|01|M|2004-08-27|2099-12-31|0123456789
-
WSPaul Lautman
AskWoody LoungerBut surely adding the parameters on the OpenText call itself should cause the correct parsing???
-
WSPaul Lautman
AskWoody LoungerI even tried altering the OpenText parameters to parse the file at open time thus:
Workbooks.OpenText Filename:=varFile, DataType:=xlDelimited, _ TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _ Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _ :=Array(Array(1, 2), Array(2, 2), Array(3, 2), Array(4, 1), Array(5, 1), Array(6, 2)), _ TrailingMinusNumbers:=True
But it still loaded the file with the columns as General and stipped off the leading zeros.
-
WSPaul Lautman
AskWoody LoungerI tried that, but it fails as when it opens the .CSV file, it has already parsed the data into separate columns. So .Range(“A1”).CurrentRegion. is more than one column wide and it fails because it texttocolumns can only be used on a single column range.
-
WSPaul Lautman
AskWoody LoungerHi Hans,
I still don’t quite get it I’m afraid.
I have a lot of these .CSV files. Currently I just open them from whatever folder I happen to be in in Windows Explorer (Sent To->Notepad). This is easy. Then I copy and paste into Excel.Sometimes Excel pastes all into column A (this is ideal), sometimes it parses into columns and presents mw with the “floating icon” to select the Text import wizard (not so good).
I can find no common denominator for why it sometimes chooses one or the other.Now, how would I go to a folder and get Excel to open the file in a new window using the Workbooks.OpenText method that you suggest?
-
WSPaul Lautman
AskWoody LoungerHi Hans, I don’tunderstand what you mean by “open the text file in a new window, then copy the contents into your workbook.”
How does this differ from opening the text file and pasting it in (which was what I said that I did)?
And also on the “OpenText” method, I would rather paste the data in as it tends to be quicker to openthe csv file in Notepad and paste into the correct area on my sheet.
-
WSPaul Lautman
AskWoody LoungerContacting the ISP is not possible.
Thanks for your reply. I guess I ought to expand a bit on what PD I
have already done.First let me explain how I found the problem in the first place:
I work from home, connected to work via a VPN.
My work machine (ThinkPad) and another PC (Netvista) are both connected to
an ADSL Router Modem.I was getting to these sites with no problem at all from my ThinkPad.
However, when I went to the Netvista, Internet Explorer said that it
couldn’t find the site.So thought I, what is the difference between these 2 machines. The
difference that I came up with was that the ThinkPad had a virtual network
adapter (the VPN) with work’s DNSs, whilst the Netvista was relying on only the
DNS known by the router modem. (By the way, I’d love to know how windows
decides whether to send stuff down the real network adapter or the virtual
one).Hence I tried the NSLOOKUP approach. NSLOOKUP with no server parameter heads
straight off down the real network adapter and could not resolve the
address. However, NSLOOKUP when supplied with the work DNS (that is
registered with the virtual adapter) resolved the address perfectly.So I asked my wife (who is connected at her office on an ADSL connection
with a different ISP) what name servers she was using. Once again NSLOOKUP
when supplied with one of these DNS resolves the address. -
WSPaul Lautman
AskWoody LoungerTrue,
I guess I realised that, but that doesn’t really cause the formatting to “stick”, rather it automates correcting it each time.I was expecting that there would be a way to tell excel that this is the formatting I want regardless of the data that it is charting.
-
WSPaul Lautman
AskWoody LoungerHi again,
The attached sheet has a pivot chart with data labels formatted as Position Center and Orientation 90 degrees.However, every time I refresh the data the Labels lose this formatting.
How do I make this formatting stick?
Also, the pivot table is sorted on the Count column. when I add new data and refresh the table, the sort order is lost.
Can I make this stick too?
TIA
Oops, I completely forgot to post the attachment!!!
-
WSPaul Lautman
AskWoody LoungerThanks Hans, I can’t blame wopr here, I completely forgot to attach the file!
Now attached to the original post.
-
WSPaul Lautman
AskWoody LoungerAhh, I did wonder if that was what it was.
The first drawback that I have found to dynamic ranges
-
WSPaul Lautman
AskWoody LoungerAhh, when you said online help, I thought you were referring to the web!
-
WSPaul Lautman
AskWoody LoungerAhh, when you said online help, I thought you were referring to the web!
![]() |
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
-
Clock missing above calendar in Windows 10
by
WSCape Sand
24 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
3 hours, 59 minutes ago -
The time has come for AI-generated art
by
Catherine Barrett
10 hours, 26 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
4 hours, 27 minutes ago -
23 and you
by
Max Stul Oppenheimer
10 hours, 28 minutes ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 26 minutes ago -
Windows 11 Windows Updater question
by
Tex265
2 hours, 42 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
1 day, 1 hour ago -
Registry Patches for Windows 10
by
Drcard:))
1 day, 6 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
12 hours, 40 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
23 hours, 28 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 11 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 12 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 20 hours ago -
No Newsletters since 27 January
by
rog7
1 hour, 26 minutes ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
21 hours, 23 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
20 hours, 3 minutes ago -
Google One Storage Questions
by
LHiggins
4 hours, 2 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
11 hours, 17 minutes ago -
Ancient SSD thinks it’s new
by
WSila
1 day, 1 hour ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
21 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 19 hours ago -
Firefox 137
by
Charlie
22 hours, 23 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
3 days ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
3 days ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
3 days ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 20 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
3 days, 3 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 9 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.