LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text import wizard bug

On 6 apr, 22:52, (Jialiang Ge [MSFT])
wrote:
Hello J.W.Zondag,

I can understand that you, and many other customers, are frustrated by the
'Separator' problem introduced by Excel 2007. I have sent emails to the
developers responsible for the issue and pushed them to fix it as soon as
possible. If there is anything else I can do for you, please do let me
know.

Again, I am sorry for the pains caused by it. I hope my eagerness to help
you can please you a little bit.

Regards,
Jialiang Ge , remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
.

This posting is provided "AS IS" with no warranties, and confers no rights..
=================================================


Hi Guys,

a solution to this:
just record the text import as a macro and
add this line to the script of the text import

.TextFileDecimalSeparator = "."

the whole thing looks like this and the macro opens all files:

fileToOpen = Application _
.GetOpenFilename("Text Files (*.txt), *.txt")


With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;" & fileToOpen _
, Destination:=Range("$A$3"))
.Name = fileToOpen
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 850
.TextFileStartRow = 2
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = False
.TextFileSemicolonDelimiter = True
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileDecimalSeparator = "."
.TextFileThousandsSeparator = "'"
.TextFileColumnDataTypes = Array(1, 1, 1, 1, 2, 2, 2, 2, 9, 9,
9)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With

Works fine

Greetz
Jo
 
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
How to Start Excel in Text Import Wizard for data import rlelvis Setting up and Configuration of Excel 0 July 10th 08 08:40 PM
Text Import Wizard Jan Excel Programming 0 March 11th 08 05:48 PM
Text Import Wizard Duncan Help Excel Discussion (Misc queries) 0 July 27th 06 02:33 PM
Text Import Wizard Prema Excel Discussion (Misc queries) 3 April 5th 06 03:11 PM
Text Import Wizard from vba Ömer Ayzan Excel Programming 2 April 8th 05 08:29 AM


All times are GMT +1. The time now is 04:24 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"