View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
joel[_814_] joel[_814_] is offline
external usenet poster
 
Posts: 1
Default How to code it in macro?


Set Databk = workbooks.open(filename:="c:\temp\DEF.xls")
Set Datasht = Databk.sheets("ABC")

with Datasht
if .Range("A1") = .Range("B1") then
'add your code here
end if

end With

Databk.close savechanges:=false


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=189250

http://www.thecodecage.com/forumz/chat.php