LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 192
Default Day & Month reversed when importing text

Hopefully my illustration describes why I'm baffled:

https://www.dropbox.com/s/sb8wkiypq9...le-01.jpg?dl=0

The problem must arise in this first section, before calling other three
macros which further manipulate the imported text.

Sub ImportFile_Copy()
'
' ImportFile_Copy Macro
' Imports the TXT file _
' C:\Users\terry\Dropbox\Excel+VBA (Sundry)\TEMP-VariableList.txt

Workbooks.OpenText Filename:= _
"C:\Users\terry\Dropbox\Excel+VBA
(Sundry)\TEMP-VariableList.txt", Origin:=xlMSDOS, _
StartRow:=1, DataType:=xlDelimited,
TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False,
Comma:=False _
, Space:=False, Other:=False, FieldInfo:=Array(Array(1, 1),
Array(2, 1)), _
TrailingMinusNumbers:=True

Windows("TEMP-VariableList.txt").Activate

' Change size & position
Application.Left = 782.75
Application.Top = 1.25
Application.Width = 658.5
Application.Height = 879.5
' Set col A & B width to 26 & 88 and align both left
Columns("A:A").ColumnWidth = 26
Columns("A:A").HorizontalAlignment = xlLeft
'Columns("B:B").Select
Columns("B:B").ColumnWidth = 26
'Selection.ColumnWidth = 88
Columns("B:B").HorizontalAlignment = xlLeft
etc

It's almost as if Excel's Import Wizard totally ignores regional
settings and uses the USA standard.

And I'm almost certain this was working smoothly a few days ago... Could
it be yet another Win 10 WU issue?

Terry, East Grinstead, UK
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert text month to numeric month salgud Excel Programming 10 April 1st 09 10:23 PM
EXCEL: How to scan text reversed (like ACCESS: InStrRev)? 4mula_freak Excel Worksheet Functions 8 August 22nd 07 08:05 AM
EXCEL: How to scan text reversed (like ACCESS: InStrRev)? 4mula_freak[_2_] Excel Worksheet Functions 3 August 21st 07 01:19 PM
Converting Month Number to Month Text Abbreviation Bob Excel Worksheet Functions 10 May 12th 07 04:11 AM
How can I show the Month in Text with the =month command Ovid New Users to Excel 2 October 24th 06 02:50 AM


All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"