Click here to Skip to main content
16,006,885 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRegistering Assemblies during installation Pin
Juan Pedro Prez24-Feb-06 6:53
Juan Pedro Prez24-Feb-06 6:53 
QuestionVB6 and excel Pin
Waldermort24-Feb-06 6:08
Waldermort24-Feb-06 6:08 
AnswerRe: VB6 and excel Pin
Joshua Quick24-Feb-06 7:47
Joshua Quick24-Feb-06 7:47 
GeneralRe: VB6 and excel Pin
Waldermort24-Feb-06 8:30
Waldermort24-Feb-06 8:30 
GeneralRe: VB6 and excel Pin
Joshua Quick24-Feb-06 8:50
Joshua Quick24-Feb-06 8:50 
GeneralRe: VB6 and excel Pin
Divya Rathi24-Feb-06 9:01
Divya Rathi24-Feb-06 9:01 
GeneralRe: VB6 and excel Pin
Waldermort24-Feb-06 12:51
Waldermort24-Feb-06 12:51 
GeneralRe: VB6 and excel Pin
Waldermort24-Feb-06 13:36
Waldermort24-Feb-06 13:36 
My code now looks like this
Public Function GetCellString(RowId As Integer, ColId As Integer) As String
    If VarType(xlSheet.Cells(RowId, ColId).Value) = vbString Then
        GetCellString = xlSheet.Cells(RowId, ColId).Value
    ElseIf VarType(xlSheet.Cells(RowId, ColId).Value) = vbDouble Then
        GetCellString = CStr(xlSheet.Cells(RowId, ColId).Value)
    End If
    MsgBox GetCellString
End Function

It is detecting a double, but it is only converting the numbers before the decimal point.
QuestionDataGrid Current Row and Field Pin
New_Coder24-Feb-06 5:32
New_Coder24-Feb-06 5:32 
AnswerRe: DataGrid Current Row and Field Pin
Dean_SF24-Feb-06 8:32
Dean_SF24-Feb-06 8:32 
AnswerRe: DataGrid Current Row and Field Pin
Felipe Dalorzo24-Feb-06 8:35
Felipe Dalorzo24-Feb-06 8:35 
GeneralRe: DataGrid Current Row and Field Pin
New_Coder24-Feb-06 10:51
New_Coder24-Feb-06 10:51 
GeneralRe: DataGrid Current Row and Field Pin
alien viper24-Feb-06 18:11
alien viper24-Feb-06 18:11 
Question[Message Deleted] Pin
Rashar24-Feb-06 4:25
Rashar24-Feb-06 4:25 
AnswerRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 4:46
Felipe Dalorzo24-Feb-06 4:46 
GeneralRe: Why won't my button click event work with this code? Pin
Rashar24-Feb-06 4:52
Rashar24-Feb-06 4:52 
GeneralRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 5:19
Felipe Dalorzo24-Feb-06 5:19 
GeneralRe: Why won't my button click event work with this code? Pin
Rashar24-Feb-06 5:47
Rashar24-Feb-06 5:47 
GeneralRe: Why won't my button click event work with this code? Pin
Felipe Dalorzo24-Feb-06 6:16
Felipe Dalorzo24-Feb-06 6:16 
QuestionWhats wrong with this.......... Pin
daviiie24-Feb-06 4:09
daviiie24-Feb-06 4:09 
AnswerRe: Whats wrong with this.......... Pin
Felipe Dalorzo24-Feb-06 4:55
Felipe Dalorzo24-Feb-06 4:55 
GeneralRe: Whats wrong with this.......... Pin
daviiie24-Feb-06 5:17
daviiie24-Feb-06 5:17 
AnswerRe: Whats wrong with this.......... Pin
Roy Heil24-Feb-06 5:22
professionalRoy Heil24-Feb-06 5:22 
QuestionMerge Pdf Files Pin
contact ajo24-Feb-06 3:46
contact ajo24-Feb-06 3:46 
QuestionPassword hacking Pin
Osama12324-Feb-06 3:18
Osama12324-Feb-06 3:18 

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.