Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compare two worksheet in Excel

Status
Not open for further replies.

keys56

Programmer
May 3, 2005
2
US
How do I compare two cells in two different worksheets in Excel? I would like to compare A1 in worksheet 1 to A1 in in worksheet 2.
 
Here is a script that shows how to compare R1C1 in worksheet1 and worksheet2. It requires that Excel and the spreadsheet be launched.

proc main
long LinkVar, SystemVar
string sSheet1, sSheet2

if ddeinit SystemVar "excel" "system"
if ddeinit LinkVar "excel" "sheet1"
dderequest LinkVar "R1C1" sSheet1
usermsg "%s" sSheet1
endif
if ddeinit LinkVar "excel" "sheet2"
dderequest LinkVar "R1C1" sSheet2
usermsg "%s" sSheet2
endif
endif
if stricmp sSheet1 sSheet2
usermsg "Cells are identical"
else
usermsg "Cells are different"
endif
endproc

 
How do I see hex value with Procomm DOS?
both on the transmit and receive sides
in Direct connect mode.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top