Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro help
Riri,
It works fine for me. Sheet1 is the worksheet codename, not name. Are you sure that you don't mean j = Worksheets("Sheet1").Range("A3").Value k = Worksheets("Sheet2").Range("A2").Value -- HTH RP (remove nothere from the email address if mailing direct) wrote in message ups.com... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |