View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Matt Williamson Matt Williamson is offline
external usenet poster
 
Posts: 22
Default determine how excel was opened

Is there any way via code to determine how Excel was opened? I want to run a
startup macro but only if Excel is opened via automation. Specifically, I'm
writing to an excel sheet from SQL server using OPENROWSET and I want to
clear the previous data first.

TIA

Matt