View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Lotus123[_2_] Lotus123[_2_] is offline
external usenet poster
 
Posts: 1
Default VB Macro to Automate a Search/Replace


Tom Ogilvy Wrote:


dt(i) = DateSerial(year(date),month(dt)-i,1)


Thanks Tom! When I run the macro I get the message:
Run-time error '13':
Type mismatch

When I run the debugger it stops on the above line

--
Lotus12
-----------------------------------------------------------------------
Lotus123's Profile: http://www.excelforum.com/member.php...fo&userid=2861
View this thread: http://www.excelforum.com/showthread.php?threadid=54951