Click here to Skip to main content
15,902,843 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAnyone out there try TrSpeaker add in component in vb6? Pin
Robert from Florida13-Sep-07 5:55
Robert from Florida13-Sep-07 5:55 
AnswerRe: Anyone out there try TrSpeaker add in component in vb6? Pin
Dave Kreskowiak13-Sep-07 6:04
mveDave Kreskowiak13-Sep-07 6:04 
QuestionExcel automation problem Pin
Alsvha13-Sep-07 5:03
Alsvha13-Sep-07 5:03 
AnswerRe: Excel automation problem Pin
Dave Kreskowiak13-Sep-07 5:28
mveDave Kreskowiak13-Sep-07 5:28 
GeneralRe: Excel automation problem Pin
Alsvha13-Sep-07 9:32
Alsvha13-Sep-07 9:32 
GeneralRe: Excel automation problem Pin
Dave Kreskowiak13-Sep-07 9:52
mveDave Kreskowiak13-Sep-07 9:52 
GeneralRe: Excel automation problem Pin
Alsvha13-Sep-07 19:08
Alsvha13-Sep-07 19:08 
GeneralRe: Excel automation problem - Simple Example Pin
Alsvha13-Sep-07 21:28
Alsvha13-Sep-07 21:28 
I've made a much more simple example which also fails:

mObjExcel = New Excel.Application
       mObjWorkBooks = mObjExcel.Workbooks
       mObjWorkBook = mObjWorkBooks.Add
       mObjSheets = mObjWorkBook.Worksheets
       If mObjSheets.Count > 0 Then
           For i As Integer = mObjSheets.Count To 2 Step -1
               mObjSheet = mObjSheets.Item(i)
               mObjSheet.Delete()
           Next
           mObjSheet = mObjSheets.Item(1)
       Else
           mObjSheet = mObjSheets.Add
       End If
       mObjSheet.Name = "A"
       mObjSheet.Range("A1").Value = "1"
       mObjSheet = mObjSheets.Add()
       mObjSheet.Name = "B"
       mObjSheet.Range("A1").Value = "1"
       mObjSheet.Range("A2").Formula = "=SUM(A1;A!A1)"

This fails, but if I substitute the formula for =SUM(1+1) it writes correct.
The formula is taken directly from what Excel wrote when I made the SUM in there.



GeneralRe: Excel automation problem - Simple Example Pin
Alsvha13-Sep-07 22:09
Alsvha13-Sep-07 22:09 
GeneralRe: Excel automation problem - Simple Example Pin
Dave Kreskowiak14-Sep-07 4:51
mveDave Kreskowiak14-Sep-07 4:51 
GeneralRe: Excel automation problem Pin
Luc Pattyn13-Sep-07 9:57
sitebuilderLuc Pattyn13-Sep-07 9:57 
GeneralRe: Excel automation problem Pin
Alsvha13-Sep-07 19:10
Alsvha13-Sep-07 19:10 
QuestionDataGrid Pin
Kiran Pinjala13-Sep-07 3:07
Kiran Pinjala13-Sep-07 3:07 
AnswerRe: DataGrid Pin
Dave Kreskowiak13-Sep-07 4:50
mveDave Kreskowiak13-Sep-07 4:50 
QuestionHow to change the owner of a registry key ? Pin
Ky Nam13-Sep-07 3:04
Ky Nam13-Sep-07 3:04 
AnswerRe: How to change the owner of a registry key ? Pin
Dave Kreskowiak13-Sep-07 4:42
mveDave Kreskowiak13-Sep-07 4:42 
QuestionHow can i invoke javascript functions in vb .net? Pin
eyes200713-Sep-07 2:53
eyes200713-Sep-07 2:53 
AnswerRe: Pdf to text Pin
WhiteGirl2313-Sep-07 2:07
WhiteGirl2313-Sep-07 2:07 
QuestionPdf to text Pin
Prakash_Mishra13-Sep-07 0:41
Prakash_Mishra13-Sep-07 0:41 
Questionrejoining split lines Pin
Mustafa Ismail Mustafa13-Sep-07 0:30
Mustafa Ismail Mustafa13-Sep-07 0:30 
AnswerRe: rejoining split lines Pin
Dave Kreskowiak13-Sep-07 4:34
mveDave Kreskowiak13-Sep-07 4:34 
QuestionHow to print Crystal report directly Pin
Swiss Mantoro12-Sep-07 22:28
Swiss Mantoro12-Sep-07 22:28 
AnswerRe: How to print Crystal report directly Pin
Steven J Jowett12-Sep-07 23:47
Steven J Jowett12-Sep-07 23:47 
QuestionUpdate Date Pin
TAK7812-Sep-07 12:11
TAK7812-Sep-07 12:11 
AnswerRe: Update Date Pin
Dave Kreskowiak13-Sep-07 4:27
mveDave Kreskowiak13-Sep-07 4:27 

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.