Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Get external data not working properly

Hi all,
I am "usig get external data" to fatch data from another
ecxel file to my current excel file. Everything works fine
except one thing. One of the column containd alfa numeric
data (i. e. text numbers and any combination of text and
numbers like 235521, AK558, ATT, BLD, 85455 etc). The data
in this columns shows blank cells at some places dont know
why. Has anybody came across this problem? Or is there any
solution to this?

Any help appreciated.
Thanks,
Kanti
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Get external data not working properly

Missing Data
Mixed

This article discusses this anomoly

http://support.microsoft.com/default...b;en-us;257819
HOWTO: Use ADO with Excel Data from Visual Basic or VBA

see "A Caution about Mixed Data Types"

It basically says the workaround would be to convert your numeric data so it
is stored as text.

--
Regards,
Tom Ogilvy

"Kanti" wrote in message
...
Hi all,
I am "usig get external data" to fatch data from another
ecxel file to my current excel file. Everything works fine
except one thing. One of the column containd alfa numeric
data (i. e. text numbers and any combination of text and
numbers like 235521, AK558, ATT, BLD, 85455 etc). The data
in this columns shows blank cells at some places dont know
why. Has anybody came across this problem? Or is there any
solution to this?

Any help appreciated.
Thanks,
Kanti



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Get external data not working properly

I have tried to save the mixed data as text but failed.
Then I tried to trim the mixed data and this also failed.

Any other way around?
Regards,
Kanti

-----Original Message-----
Missing Data
Mixed

This article discusses this anomoly

http://support.microsoft.com/default.aspx?scid=kb;en-

us;257819
HOWTO: Use ADO with Excel Data from Visual Basic or VBA

see "A Caution about Mixed Data Types"

It basically says the workaround would be to convert your

numeric data so it
is stored as text.

--
Regards,
Tom Ogilvy

"Kanti" wrote in message
...
Hi all,
I am "usig get external data" to fatch data from another
ecxel file to my current excel file. Everything works

fine
except one thing. One of the column containd alfa

numeric
data (i. e. text numbers and any combination of text and
numbers like 235521, AK558, ATT, BLD, 85455 etc). The

data
in this columns shows blank cells at some places dont

know
why. Has anybody came across this problem? Or is there

any
solution to this?

Any help appreciated.
Thanks,
Kanti



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Get external data not working properly

to save the mixed data as text

Sub makeText()
Dim rng as Range
Dim cell as Range
Set rng = selection.SpecialCells(xlconstants,xlnumbers)
for each cell in rng
cell.Formula = "'" & cell.Value
Next
End Sub

--
Regards,
Tom Ogilvy



"Kanti" wrote in message
...
I have tried to save the mixed data as text but failed.
Then I tried to trim the mixed data and this also failed.

Any other way around?
Regards,
Kanti

-----Original Message-----
Missing Data
Mixed

This article discusses this anomoly

http://support.microsoft.com/default.aspx?scid=kb;en-

us;257819
HOWTO: Use ADO with Excel Data from Visual Basic or VBA

see "A Caution about Mixed Data Types"

It basically says the workaround would be to convert your

numeric data so it
is stored as text.

--
Regards,
Tom Ogilvy

"Kanti" wrote in message
...
Hi all,
I am "usig get external data" to fatch data from another
ecxel file to my current excel file. Everything works

fine
except one thing. One of the column containd alfa

numeric
data (i. e. text numbers and any combination of text and
numbers like 235521, AK558, ATT, BLD, 85455 etc). The

data
in this columns shows blank cells at some places dont

know
why. Has anybody came across this problem? Or is there

any
solution to this?

Any help appreciated.
Thanks,
Kanti



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Get external data not working properly

Thanks Tom.
I have run your macro but still it gives the same results. All the numbers are not desplayed. I also gone thru the KB artical. It say that the whole column will be evaluated and majority data type will be desplayed and other data type will show null.
Any other clue?
Thanks,
Kanti

----- Tom Ogilvy wrote: -----

to save the mixed data as text

Sub makeText()
Dim rng as Range
Dim cell as Range
Set rng = selection.SpecialCells(xlconstants,xlnumbers)
for each cell in rng
cell.Formula = "'" & cell.Value
Next
End Sub

--
Regards,
Tom Ogilvy



"Kanti" wrote in message
...
I have tried to save the mixed data as text but failed.
Then I tried to trim the mixed data and this also failed.
Any other way around?

Regards,
Kanti
-----Original Message-----

Missing Data
Mixed
This article discusses this anomoly
http://support.microsoft.com/default.aspx?scid=kb;en-

us;257819
HOWTO: Use ADO with Excel Data from Visual Basic or VBA
see "A Caution about Mixed Data Types"
It basically says the workaround would be to convert your

numeric data so it
is stored as text.
--

Regards,
Tom Ogilvy
"Kanti" wrote in message

...
Hi all,
I am "usig get external data" to fatch data from another
ecxel file to my current excel file. Everything works

fine
except one thing. One of the column containd alfa

numeric
data (i. e. text numbers and any combination of text and
numbers like 235521, AK558, ATT, BLD, 85455 etc). The

data
in this columns shows blank cells at some places dont

know
why. Has anybody came across this problem? Or is there

any
solution to this?
Any help appreciated.
Thanks,
Kanti
.


Reply
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
data-auto filter not working properly? Brad Excel Discussion (Misc queries) 10 January 26th 07 03:14 PM
IF statement for time data not working properly Daren Excel Worksheet Functions 2 November 7th 06 11:10 PM
External Data Refresh not working Mike B in VT Excel Discussion (Misc queries) 0 February 10th 06 06:23 PM
data subtotalling isnt working properly on my spreadsheet robert Excel Worksheet Functions 1 January 19th 06 03:26 PM
Excel 2003 Data Sort & Subtotaling not working properly Roibn L Taylor Excel Discussion (Misc queries) 5 December 8th 05 05:59 PM


All times are GMT +1. The time now is 06:45 PM.

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"