Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-08-2018, 01:58 AM
ArviLaanemets ArviLaanemets is offline Excel VBA interprets numeric values from worksheet formatted as General in several ways Windows 8 Excel VBA interprets numeric values from worksheet formatted as General in several ways Office 2016
Expert
Excel VBA interprets numeric values from worksheet formatted as General in several ways
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

I did find out what happened!

Client created a tab-delimited text file. As client used comma as decimals delimiter, in some columns integer values were saved with decimals, like 0,000 or 1500,000 or 1,0 etc.
Then client RENAMED the text file as xls-file! Renamed instead of opening it with Excel, and then saving in Excel format.

As result, the file really remained a text file - no Excel header, no formatting codes, etc.

When I opened the file with Excel, Excel complained a bit, but was able to display it correctly, as my regional settings were same as client had. I think for my college with US settings some columns were interpreted as text.

When VBA opened the file, then it ignored local settings and used US settings in Excel instance where the file was opened. The result was a mess I described in first post.

I renamed the client file back to *.txt, opened it with Excel, and saved as *.xls. The new file was converted properly.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel VBA interprets numeric values from worksheet formatted as General in several ways Numeric Values jrt Word VBA 2 11-09-2014 01:28 PM
Convert alphabets to numeric values kjxavier Word 3 07-06-2014 05:34 AM
Excel VBA interprets numeric values from worksheet formatted as General in several ways Sorting Alphanumeric & Numeric values slovenc0417 Excel 2 06-07-2013 07:58 PM
Excel VBA interprets numeric values from worksheet formatted as General in several ways Handle Text / Numeric values in SSRS while Export To Excel achuki Excel 5 02-07-2012 02:14 PM
Excel VBA interprets numeric values from worksheet formatted as General in several ways [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft