Thread: Macro help
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] eleftheriak@hotmail.com is offline
external usenet poster
 
Posts: 6
Default Macro help

Hello all,

I have a weird or logical error that I dont know what it is.

Dim j, k

j = Sheet1.Range("A3").Value
k = Sheet2.Range("A2").Value

If ((j) = (k)) Then
MsgBox ("hello")
End If

Even though the A3 = 7 and A2 = 7

Can anyone help?

Thanks in advance

Riri