Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Looking for a simple code for:
If this worksheet $b$2 value=other w/book sheet1 $h$2 value then msg"value exists" and exit sub() ,if not do something else.(both w/books are in same folder) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If Activesheet.Range("B2").Value =
Workbooks("other.xls").Worksheets("Sheet1").Range( "H2") Then Msgbox "Value exists" End if -- HTH Bob Phillips (remove nothere from email address if mailing direct) "TUNGANA KURMA RAJU" wrote in message ... Looking for a simple code for: If this worksheet $b$2 value=other w/book sheet1 $h$2 value then msg"value exists" and exit sub() ,if not do something else.(both w/books are in same folder) |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks ,but it is not working,compile error:expected expression error is
coming.What to do ? "Bob Phillips" wrote: If Activesheet.Range("B2").Value = Workbooks("other.xls").Worksheets("Sheet1").Range( "H2") Then Msgbox "Value exists" End if -- HTH Bob Phillips (remove nothere from email address if mailing direct) "TUNGANA KURMA RAJU" wrote in message ... Looking for a simple code for: If this worksheet $b$2 value=other w/book sheet1 $h$2 value then msg"value exists" and exit sub() ,if not do something else.(both w/books are in same folder) |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Probably just NG wrap-around
If ActiveSheet.Range("B2").Value = _ Workbooks("other.xls").Worksheets("Sheet1").Range( "H2") Then MsgBox "Value exists" End If -- HTH Bob Phillips (remove nothere from email address if mailing direct) "TUNGANA KURMA RAJU" wrote in message ... Thanks ,but it is not working,compile error:expected expression error is coming.What to do ? "Bob Phillips" wrote: If Activesheet.Range("B2").Value = Workbooks("other.xls").Worksheets("Sheet1").Range( "H2") Then Msgbox "Value exists" End if -- HTH Bob Phillips (remove nothere from email address if mailing direct) "TUNGANA KURMA RAJU" wrote in message ... Looking for a simple code for: If this worksheet $b$2 value=other w/book sheet1 $h$2 value then msg"value exists" and exit sub() ,if not do something else.(both w/books are in same folder) |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Same error coming !
"Bob Phillips" wrote: Probably just NG wrap-around If ActiveSheet.Range("B2").Value = _ Workbooks("other.xls").Worksheets("Sheet1").Range( "H2") Then MsgBox "Value exists" End If -- HTH Bob Phillips (remove nothere from email address if mailing direct) "TUNGANA KURMA RAJU" wrote in message ... Thanks ,but it is not working,compile error:expected expression error is coming.What to do ? "Bob Phillips" wrote: If Activesheet.Range("B2").Value = Workbooks("other.xls").Worksheets("Sheet1").Range( "H2") Then Msgbox "Value exists" End if -- HTH Bob Phillips (remove nothere from email address if mailing direct) "TUNGANA KURMA RAJU" wrote in message ... Looking for a simple code for: If this worksheet $b$2 value=other w/book sheet1 $h$2 value then msg"value exists" and exit sub() ,if not do something else.(both w/books are in same folder) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare two cells from reference cells | Excel Worksheet Functions | |||
How can I compare Excel files | Excel Discussion (Misc queries) | |||
How can I compare the contents of two Excel files? | Excel Discussion (Misc queries) | |||
Compare two spreadsheets to find differences. | Excel Discussion (Misc queries) | |||
Is there a way to compare 2 spreadsheets with Excel? | Excel Discussion (Misc queries) |