Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2005 Read Excel data with retain spacing between data

$
0
0
I manage to read my excel data correctly,
How do i retain the spacing in between.

data in excel file = ABC DEF (3 spacing between ABC and DEF)
what i get = ABC DEF (remain 1 spacing be ABC and DEF)

*** I want ABC DEF (3 spacing in between)

my coding as below:
Dim oWS As Excel.Worksheet = DirectCast(oWBa.Worksheets(1), Excel.Worksheet)
oWS.Range("B" & i).Text // get ABC DEF
oWS.Range("B" & i).Value // get ABC DEF
oWS.Range("B" & i).Value2 // get ABC DEF

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>