Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Why doesn't this code compile?

This code:

ActiveWorkbook.SaveAs XlSaveAsAccessMode:=xlExclusive

returns the Compile Error "Named Argument Not Found."

Why?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Why doesn't this code compile?

Hi Keith,

Try:

ActiveWorkbook.SaveAs AccessMode:=xlExclusive


---
Regards,
Norman



"keithb" wrote in message
...
This code:

ActiveWorkbook.SaveAs XlSaveAsAccessMode:=xlExclusive

returns the Compile Error "Named Argument Not Found."

Why?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Why doesn't this code compile?

ActiveWorkbook.SaveAs AccessMode:=xlExclusive

xlsaveasaccessmode represents one of those constants.

keithb wrote:

This code:

ActiveWorkbook.SaveAs XlSaveAsAccessMode:=xlExclusive

returns the Compile Error "Named Argument Not Found."

Why?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Why doesn't this code compile?

Try ActiveWorkbook.SaveAs AccessMode:=xlExclusive

HTH

Matt

"keithb" wrote in message
...
This code:

ActiveWorkbook.SaveAs XlSaveAsAccessMode:=xlExclusive

returns the Compile Error "Named Argument Not Found."

Why?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code translation - compile error MaBell Excel Programming 1 April 28th 05 07:40 AM
Force code to compile quartz[_2_] Excel Programming 2 August 6th 04 09:37 PM
Compile VBA code Eric[_14_] Excel Programming 1 December 28th 03 03:36 AM
Compile Error in Code Phil Hageman[_3_] Excel Programming 9 October 29th 03 08:52 PM


All times are GMT +1. The time now is 08:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"