Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Open a workbook with Notify option

Jim Rech pointed me in the right direction yesterday with a problem I was
having opening a workbook, and he suggested I look at the Notify option.

Being very green at syntax I have tried to code it like this:

Workbooks.Open ("\\..............NSR\Database\Dbase.xlsx",,,,,,,, ,,False)

with false, so that no notification is sent, but I keep getting a compile
error asking for an expected expression.
What am I missing?
TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Open a workbook with Notify option

Drop the ()'s

Personally, I find using the named parms much easier to read:

workbooks.open filename:="\\.....\dbase.xlsx", notify:=false

or with the ()'s:

Dim wkbk As Workbook
set wkbk = workbooks.Open(filename:="\\.....\dbase.xlsx", notify:=false)


GrantW wrote:

Jim Rech pointed me in the right direction yesterday with a problem I was
having opening a workbook, and he suggested I look at the Notify option.

Being very green at syntax I have tried to code it like this:

Workbooks.Open ("\\..............NSR\Database\Dbase.xlsx",,,,,,,, ,,False)

with false, so that no notification is sent, but I keep getting a compile
error asking for an expected expression.
What am I missing?
TIA


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Open a workbook with Notify option

Thank you very much, Dave.
I think I get it now.
Much appreciated.

"Dave Peterson" wrote:

Drop the ()'s

Personally, I find using the named parms much easier to read:

workbooks.open filename:="\\.....\dbase.xlsx", notify:=false

or with the ()'s:

Dim wkbk As Workbook
set wkbk = workbooks.Open(filename:="\\.....\dbase.xlsx", notify:=false)


GrantW wrote:

Jim Rech pointed me in the right direction yesterday with a problem I was
having opening a workbook, and he suggested I look at the Notify option.

Being very green at syntax I have tried to code it like this:

Workbooks.Open ("\\..............NSR\Database\Dbase.xlsx",,,,,,,, ,,False)

with false, so that no notification is sent, but I keep getting a compile
error asking for an expected expression.
What am I missing?
TIA


--

Dave Peterson

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
How to: Open closed workbook/Search data tables/Return data to open workbook Hugh Adams Excel Discussion (Misc queries) 0 August 18th 10 02:04 PM
Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it. [email protected] Excel Programming 1 May 13th 07 01:46 PM
Read Only Notify Option UBER_GEEK Excel Programming 0 November 28th 05 05:01 PM
Notify when file is open? Rbp9ad[_2_] Excel Programming 0 November 15th 05 05:03 PM
Notify without opening workbook Lesa[_2_] Excel Programming 1 February 24th 04 04:08 PM


All times are GMT +1. The time now is 06:16 PM.

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"