Solved: VB Net Excel

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

cjeffc

Thread Starter
Joined
Apr 10, 2009
Messages
31
In a VB 2008 program, I am exporting an object array ( Friend theIncludes(,) AsObject ) to excel using the code below. Everything works wonderfully, unless one of the array elements includes a string that excel decides to intrepret for me. How can I get excel to stop changing a string of 12/10 to Dec-10...I have tried numberformat = "General" and "Text" to no avail as well as .value versus .value2

xlsWB.Sheets(1).Select()
If iIncludes > 0 Then
xlsRange = xlsSheet.Range("A1:" + colOut_LastExcel + iIncludes.ToString)
xlsRange.Value2 = theIncludes
' xlsRange.Value = theIncludes
EndIf


Many thanks
cjeffc
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top