Click here to Skip to main content
15,899,474 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
Samir Ibrahim21-Feb-09 0:19
Samir Ibrahim21-Feb-09 0:19 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
Alan N21-Feb-09 1:43
Alan N21-Feb-09 1:43 
GeneralRe: How can I iterate all of the directories in a specific drive? Pin
Samir Ibrahim21-Feb-09 2:12
Samir Ibrahim21-Feb-09 2:12 
QuestionHow to play a muli-track avi file Pin
Franchuu20-Feb-09 8:27
Franchuu20-Feb-09 8:27 
AnswerRe: How to play a muli-track avi file Pin
Dave Kreskowiak21-Feb-09 7:39
mveDave Kreskowiak21-Feb-09 7:39 
GeneralRe: How to play a muli-track avi file Pin
Franchuu21-Feb-09 21:59
Franchuu21-Feb-09 21:59 
GeneralRe: How to play a muli-track avi file Pin
Franchuu22-Feb-09 0:55
Franchuu22-Feb-09 0:55 
QuestionCreating an Excel Workbook in VB.NET 2008 Pin
Like2Byte20-Feb-09 6:39
Like2Byte20-Feb-09 6:39 
Hi, I'm helping a colleague of mine.

We're trying to create an Excel workbook so he can do some calculations. However, we can't get the excel object to instantiate. We've added the reference via 'Project->Add Reference->Microsoft Excel 11.0 Object Library->OK.

On our form, we've added the following but can not get the object to instantiate.

Imports Microsoft.Office.Interop.Excel

Public Class Form1
Dim excelapp As New Microsoft.Office.Interop.Excel.Application
Dim excelwb As Microsoft.Office.Interop.Excel.Workbook

End Class

The Dim calls seem to take ok as no squiggly lines appear on those two lines.
Attempting to reference excelapp or excelwb only results in squiggly lines under their names and no properties will appear in the drop down - that is, there is no dropdown as it doesn't recognize the two variables.

How can we instantiate the excel object so we can use the methods on it?

Thanks in advance. Smile | :)
AnswerRe: Creating an Excel Workbook in VB.NET 2008 Pin
DaveAuld20-Feb-09 7:09
professionalDaveAuld20-Feb-09 7:09 
GeneralRe: Creating an Excel Workbook in VB.NET 2008 Pin
Like2Byte20-Feb-09 7:21
Like2Byte20-Feb-09 7:21 
QuestionDisplay Data In Datagrid - Error Pin
Member 367504720-Feb-09 1:45
Member 367504720-Feb-09 1:45 
AnswerRe: Display Data In Datagrid - Error Pin
Dave Kreskowiak20-Feb-09 2:05
mveDave Kreskowiak20-Feb-09 2:05 
GeneralRe: Display Data In Datagrid - Error Pin
Member 367504720-Feb-09 2:32
Member 367504720-Feb-09 2:32 
GeneralRe: Display Data In Datagrid - Error Pin
Dave Kreskowiak20-Feb-09 3:31
mveDave Kreskowiak20-Feb-09 3:31 
GeneralRe: Display Data In Datagrid - Error Pin
Member 367504720-Feb-09 3:58
Member 367504720-Feb-09 3:58 
QuestionHow can I solve "Cross-thread operation not valid" error? Pin
JUNEYT20-Feb-09 1:22
JUNEYT20-Feb-09 1:22 
AnswerRe: How can I solve "Cross-thread operation not valid" error? Pin
Dave Kreskowiak20-Feb-09 2:04
mveDave Kreskowiak20-Feb-09 2:04 
QuestionCreate Barcode True Type Font Pin
Anubhava Dimri19-Feb-09 22:36
Anubhava Dimri19-Feb-09 22:36 
AnswerRe: Create Barcode True Type Font Pin
Simon P Stevens19-Feb-09 22:53
Simon P Stevens19-Feb-09 22:53 
AnswerRe: Create Barcode True Type Font Pin
Dave Kreskowiak20-Feb-09 1:57
mveDave Kreskowiak20-Feb-09 1:57 
QuestionGrouping rows in list with summation of fields Pin
kanchoette19-Feb-09 21:46
kanchoette19-Feb-09 21:46 
AnswerRe: Grouping rows in list with summation of fields Pin
Dave Kreskowiak20-Feb-09 3:46
mveDave Kreskowiak20-Feb-09 3:46 
QuestionHow to Retain datagridview cell backcolor and forecolor in excel after exporting from datagridview to excel 2003 Pin
chandrubngit19-Feb-09 21:45
chandrubngit19-Feb-09 21:45 
AnswerRe: How to Retain datagridview cell backcolor and forecolor in excel after exporting from datagridview to excel 2003 Pin
dan!sh 19-Feb-09 23:20
professional dan!sh 19-Feb-09 23:20 
AnswerRe: How to Retain datagridview cell backcolor and forecolor in excel after exporting from datagridview to excel 2003 Pin
Dave Kreskowiak20-Feb-09 2:00
mveDave Kreskowiak20-Feb-09 2:00 

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.