Click here to Skip to main content
15,888,733 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Real Corks2-Mar-16 8:15
Real Corks2-Mar-16 8:15 
GeneralRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Sascha Lefèvre2-Mar-16 8:46
professionalSascha Lefèvre2-Mar-16 8:46 
GeneralRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Real Corks2-Mar-16 11:40
Real Corks2-Mar-16 11:40 
AnswerRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Richard Deeming2-Mar-16 9:49
mveRichard Deeming2-Mar-16 9:49 
GeneralRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Real Corks2-Mar-16 11:46
Real Corks2-Mar-16 11:46 
GeneralRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Real Corks2-Mar-16 11:52
Real Corks2-Mar-16 11:52 
GeneralRe: can someone help me to fix this in mysql vb "INVALID ATTEMP TO READ WHEN READER IS CLOSE "? Pin
Real Corks2-Mar-16 12:45
Real Corks2-Mar-16 12:45 
QuestionExcel VBA For Loop Weighted Average Pin
Member 1226553729-Feb-16 22:40
Member 1226553729-Feb-16 22:40 
Good Morning

I want to loop through all the available data in a column. Within the loop I am using an if statement to check for certain conditions. I then want to calculate the weightedaverage for the corresponding columns for all the rows that meets the if statement conditions.

Please see code below:
Select Case channel
'Channel 1 Threshold Check'
    Case Is = 1
    If ((Cells(i, 8).Value > Range("N10")) Or (Cells(i, 8).Value < Range("N10") And Cells(i, 6) > Range("N12")) Or (Cells(i, 8).Value > Range("N11") And Cells(i, 7) > Range("N13"))) Then
            
         
            
            Range("N21") = conc1
            Cells(i, 8).Font.Color = vbRed 'Colour the cells that meets the conditions'
            Cells(i, 6).Font.Color = vbRed 'Colour the cells that meets the conditions'
            Cells(i, 7).Font.Color = vbRed 'Colour the cells that meets the conditions'
     ElseIf ((Cells(i, 8).Value < Range("N10")) Or (Cells(i, 8).Value > Range("N10") And Cells(i, 6) < Range("N12")) Or (Cells(i, 8).Value < Range("N11") And Cells(i, 7) < Range("N13"))) Then
            
            Disc1 = Disc1 + 1
            Range("O21") = Disc1
            
    End If

AnswerRe: Excel VBA For Loop Weighted Average Pin
Kenneth Haugland29-Feb-16 23:50
mvaKenneth Haugland29-Feb-16 23:50 
GeneralRe: Excel VBA For Loop Weighted Average Pin
Member 122655371-Mar-16 0:27
Member 122655371-Mar-16 0:27 
GeneralRe: Excel VBA For Loop Weighted Average Pin
Kenneth Haugland1-Mar-16 11:13
mvaKenneth Haugland1-Mar-16 11:13 
QuestionNet.Sockets.TcpListener Pin
hansoctantan29-Feb-16 1:40
professionalhansoctantan29-Feb-16 1:40 
QuestionRe: Net.Sockets.TcpListener Pin
Eddy Vluggen29-Feb-16 2:41
professionalEddy Vluggen29-Feb-16 2:41 
AnswerRe: Net.Sockets.TcpListener Pin
Dave Kreskowiak29-Feb-16 3:55
mveDave Kreskowiak29-Feb-16 3:55 
Questionjson exception Pin
duup27-Feb-16 0:43
duup27-Feb-16 0:43 
AnswerRe: json exception Pin
Dave Kreskowiak27-Feb-16 10:49
mveDave Kreskowiak27-Feb-16 10:49 
GeneralRe: json exception Pin
duup28-Feb-16 21:04
duup28-Feb-16 21:04 
GeneralRe: json exception Pin
Dave Kreskowiak29-Feb-16 2:41
mveDave Kreskowiak29-Feb-16 2:41 
Questionhow to start a vbs script in a vbs script on a client computer Pin
Member 1191673523-Feb-16 22:31
Member 1191673523-Feb-16 22:31 
AnswerRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak24-Feb-16 2:16
mveDave Kreskowiak24-Feb-16 2:16 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Member 1191673524-Feb-16 3:39
Member 1191673524-Feb-16 3:39 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak24-Feb-16 3:58
mveDave Kreskowiak24-Feb-16 3:58 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Member 1191673525-Feb-16 0:58
Member 1191673525-Feb-16 0:58 
GeneralRe: how to start a vbs script in a vbs script on a client computer Pin
Dave Kreskowiak25-Feb-16 1:42
mveDave Kreskowiak25-Feb-16 1:42 
QuestionStarting the process as user will not work on Win2012 Pin
byka23-Feb-16 1:29
byka23-Feb-16 1:29 

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.