View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Arne Arne is offline
external usenet poster
 
Posts: 35
Default Automation Security and unexpected program termination

OK, thanks. See if I can and want to use that bypass.

"joel" wrote:


You can open the workbook in safe mode which doesn't run any macros but
still allow changes to be made. the only way I know of opening in
safemode is from the command line prompt using /s.


Comspec = Environ("Comspec")
ExcelExe = Application.Path & "\excel.exe"
FName = "c:\temp\book1.xls"

CommandLine = Comspec & " /k " & Chr(34) & _
ExcelExe & Chr(34) & " /s " & FName

Shell (CommandLine)


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

Microsoft Office Help

.