adamprocter
Board Regular
- Joined
- Apr 13, 2015
- Messages
- 53
Code works fine on my mac however it has started failing on windows macs with a type mis match pointing to this line
INextRow is declared as a Long and is used in lines before this one so I am a little lost and also have less access to windows machines so I am finding it hard to debug ?
Any ideas ?
Here is some more code around it
Code:
If Sheets("Dashboard").Range("I3") < Sheets("Dashboard").Cells(lNextRow, "M") Then
INextRow is declared as a Long and is used in lines before this one so I am a little lost and also have less access to windows machines so I am finding it hard to debug ?
Any ideas ?
Here is some more code around it
Code:
'Dashboard population script follows
Dim ws As Worksheet
Dim sName As String
Dim Value As String
Dim lLastRow As Long
Dim lNextRow As Long
Dim rcMatch As Variant
Application.ScreenUpdating = False
....
Set MyRange = Sheets("Dashboard").Range("H6:I" & ILastRow)
For Each c In MyRange
Select Case True
Case c.Value = "One"
'if BEP is above current BEP green
If Sheets("Dashboard").Range("I3") < Sheets("Dashboard").Cells(lNextRow, "M") Then
Sheets("Dashboard").Cells(lNextRow, "I").Copy
Sheets("Dashboard").Cells(lNextRow, "AS").PasteSpecial Paste:=xlPasteValues
Else
Sheets("Dashboard").Cells(lNextRow, "AS").ClearContents
Sheets("Dashboard").Cells(lNextRow, "I").Copy
Sheets("Dashboard").Cells(lNextRow, "AT").PasteSpecial Paste:=xlPasteValues
End If
Case c.Value = "Two"
....