Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Using Wildcard in Declaring Variables Pin
Guffa28-Jan-09 13:35
Guffa28-Jan-09 13:35 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT30-Jan-09 4:53
IvanIT30-Jan-09 4:53 
QuestionHow to sort data in DataGridView column who contain Date/Time records Pin
ivo7527-Jan-09 8:29
ivo7527-Jan-09 8:29 
AnswerRe: How to sort data in DataGridView column who contain Date/Time records Pin
Wendelius27-Jan-09 10:01
mentorWendelius27-Jan-09 10:01 
AnswerRe: How to sort data in DataGridView column who contain Date/Time records Pin
Jon_Boy27-Jan-09 15:26
Jon_Boy27-Jan-09 15:26 
GeneralRe: How to sort data in DataGridView column who contain Date/Time records Pin
ivo7527-Jan-09 20:11
ivo7527-Jan-09 20:11 
QuestionVBA Excel.Range.FormulaProperty Pin
EliottA27-Jan-09 4:33
EliottA27-Jan-09 4:33 
AnswerSOLVED Pin
EliottA27-Jan-09 4:41
EliottA27-Jan-09 4:41 
Solution available at this site.[^]

Summary
''' If the long formula can be broken into parts, where the second part can
''' be replaced by a dummy function, this approach can be used...
Public Sub LongArrayFormula()
    Dim theFormulaPart1 As String
    Dim theFormulaPart2 As String
    theFormulaPart1 = "=IF(MONTH(DATE(YEAR(NOW()),MONTH(NOW()),1))-" & _
                          "MONTH(DATE(YEAR(NOW()),MONTH(NOW()),1)-" & _
                          "(WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW()),1))-1)+" & _
                          "{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1),""""," & _
                          "X_X_X())"
                          
    theFormulaPart2 = "DATE(YEAR(NOW()),MONTH(NOW()),1)-" & _
                      "(WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW()),1))-1)+" & _
                      "{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1)"
        
    With ActiveSheet.Range("E2:K7")
        .FormulaArray = theFormulaPart1
        .Replace "X_X_X())", theFormulaPart2
        .NumberFormat = "mmm dd"
    End With
    
End Sub

QuestionFocus problem with Interop usercontrol Pin
Glauter27-Jan-09 1:47
Glauter27-Jan-09 1:47 
AnswerRe: Focus problem with Interop usercontrol Pin
Dave Kreskowiak27-Jan-09 1:59
mveDave Kreskowiak27-Jan-09 1:59 
GeneralRe: Focus problem with Interop usercontrol Pin
Glauter27-Jan-09 2:12
Glauter27-Jan-09 2:12 
GeneralRe: Focus problem with Interop usercontrol Pin
Dave Kreskowiak27-Jan-09 4:16
mveDave Kreskowiak27-Jan-09 4:16 
GeneralRe: Focus problem with Interop usercontrol Pin
Glauter27-Jan-09 4:21
Glauter27-Jan-09 4:21 
QuestionExporting data and sending email with attachments in Windows Form exe Pin
Ramki Sankaran27-Jan-09 1:34
Ramki Sankaran27-Jan-09 1:34 
AnswerRe: Exporting data and sending email with attachments in Windows Form exe [modified] Pin
Wendelius27-Jan-09 2:54
mentorWendelius27-Jan-09 2:54 
AnswerRe: Exporting data and sending email with attachments in Windows Form exe Pin
Bharat Jain27-Jan-09 19:36
Bharat Jain27-Jan-09 19:36 
GeneralRe: Exporting data and sending email with attachments in Windows Form exe Pin
Ramki Sankaran28-Jan-09 23:25
Ramki Sankaran28-Jan-09 23:25 
QuestionPassing Parameter From VB 6 to Crystal Report 8.5 Pin
BalasubramanianK27-Jan-09 0:58
BalasubramanianK27-Jan-09 0:58 
AnswerRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
Vimalsoft(Pty) Ltd27-Jan-09 1:20
professionalVimalsoft(Pty) Ltd27-Jan-09 1:20 
GeneralRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
BalasubramanianK27-Jan-09 1:27
BalasubramanianK27-Jan-09 1:27 
AnswerRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
Tom Deketelaere27-Jan-09 2:06
professionalTom Deketelaere27-Jan-09 2:06 
GeneralRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
BalasubramanianK27-Jan-09 2:16
BalasubramanianK27-Jan-09 2:16 
Questiondatabase file missing while publishing my vb.net project Pin
NaliniNagarajan27-Jan-09 0:46
NaliniNagarajan27-Jan-09 0:46 
AnswerRe: database file missing while publishing my vb.net project Pin
Vimalsoft(Pty) Ltd27-Jan-09 1:14
professionalVimalsoft(Pty) Ltd27-Jan-09 1:14 
QuestionFiltering dataset Pin
carrigart27-Jan-09 0:01
carrigart27-Jan-09 0:01 

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.