Click here to Skip to main content
15,923,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Stack Overflow when adding controls across threads. Pin
Chinners31-Jan-08 0:16
Chinners31-Jan-08 0:16 
GeneralRe: Stack Overflow when adding controls across threads. Pin
m@u31-Jan-08 0:22
m@u31-Jan-08 0:22 
AnswerRe: Stack Overflow when adding controls across threads. Pin
Chinners31-Jan-08 0:31
Chinners31-Jan-08 0:31 
GeneralProblem with Excel Sheet name when importing using oledb Pin
RichardBerry30-Jan-08 21:28
RichardBerry30-Jan-08 21:28 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
Johan Hakkesteegt31-Jan-08 0:47
Johan Hakkesteegt31-Jan-08 0:47 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
RichardBerry31-Jan-08 3:58
RichardBerry31-Jan-08 3:58 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
Johan Hakkesteegt31-Jan-08 20:30
Johan Hakkesteegt31-Jan-08 20:30 
GeneralRe: Problem with Excel Sheet name when importing using oledb Pin
RichardBerry1-Feb-08 0:50
RichardBerry1-Feb-08 0:50 
Hi
I have tried various options with the quotes with no sucess.

Once I have selected the workbook from which I want to import the sheet, I load the sheets in the workbook into a combo. The user can then select which sheet they want to import. I do this as follows:
<br />
For Each sheet As Excel.Worksheet In xlPacklistBook.Sheets<br />
    Me.cboPackListSheetSelect.Items.Add(sheet.Name)<br />
Next<br />


Regarding the second option, I did try using the sheet index, but that did not work. I suspect it is because in the following code, the command data type is a string:

<br />
Dim cmd As New System.Data.OleDb.OleDbCommand("Select * from ['" & strSheet & "$.A:A]'", conn)<br />


In Excel VBA if you use Sheet(1) as a ref to a sheet, the one is an int value, not a string as in Sheet("mySheet")
I'm trying th e third option at the moment, but having hassles - I'll let you know if I get it right..
GeneralDeployment Problem Pin
SamRST30-Jan-08 21:21
SamRST30-Jan-08 21:21 
GeneralDay of the week combinations. [modified] Pin
Absenm30-Jan-08 20:45
Absenm30-Jan-08 20:45 
GeneralRe: Day of the week combinations. Pin
Mycroft Holmes30-Jan-08 21:55
professionalMycroft Holmes30-Jan-08 21:55 
QuestionDatagridview default style getting changed changes Pin
nishkarsh_k30-Jan-08 20:36
nishkarsh_k30-Jan-08 20:36 
GeneralRe: Datagridview default style getting changed changes Pin
Dave Kreskowiak31-Jan-08 4:46
mveDave Kreskowiak31-Jan-08 4:46 
GeneralRe: Datagridview default style getting changed changes Pin
nishkarsh_k31-Jan-08 19:48
nishkarsh_k31-Jan-08 19:48 
GeneralLock Folder Pin
Kumaran21cen30-Jan-08 19:43
Kumaran21cen30-Jan-08 19:43 
GeneralRe: Lock Folder Pin
Mycroft Holmes30-Jan-08 22:00
professionalMycroft Holmes30-Jan-08 22:00 
GeneralRe: Lock Folder Pin
Steven J Jowett30-Jan-08 23:28
Steven J Jowett30-Jan-08 23:28 
GeneralRe: Lock Folder Pin
Dave Kreskowiak31-Jan-08 4:45
mveDave Kreskowiak31-Jan-08 4:45 
Generalinstantiating object returns nothing Pin
rotsey30-Jan-08 18:01
rotsey30-Jan-08 18:01 
GeneralRe: instantiating object returns nothing Pin
Justin Perez31-Jan-08 3:08
Justin Perez31-Jan-08 3:08 
QuestionHow to use Adodc In Vb.net Pin
ejaz_pk30-Jan-08 8:02
ejaz_pk30-Jan-08 8:02 
GeneralRe: How to use Adodc In Vb.net Pin
Mycroft Holmes30-Jan-08 13:18
professionalMycroft Holmes30-Jan-08 13:18 
QuestionRe: How to use Adodc In Vb.net Pin
ejaz_pk31-Jan-08 1:29
ejaz_pk31-Jan-08 1:29 
GeneralRe: How to use Adodc In Vb.net Pin
Mycroft Holmes31-Jan-08 13:12
professionalMycroft Holmes31-Jan-08 13:12 
GeneralRe: How to use Adodc In Vb.net Pin
Paul Conrad30-Jan-08 15:57
professionalPaul Conrad30-Jan-08 15:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.