The following syntax is what I found under the Help in Excel's VBA
Editor (you may refer to it for the details of each parameter). i
specified to open in Write
mode (Read Only is false), it doesn't do the way as I wished to open
in
Write mode. Instead, still saw (Read Only) above the MenuBar on the
upper
left corner when an excel file is opened.
Syntax
expression.Open (FileName, UpdateLinks, ReadOnly, Format, Password,
WriteResPasswor d, IgnoreReadOnlyR ecommended, Origin, Delimiter,
Editable, Notify, Converter, AddToMRU)
Here I care nothing else but opening a file in Read & Write. How to
specify the parameters to open in Read & Write in javascript given the
syntax?
Thanks very much. 5 6508
In vba, you would leave arguments blank in a comma separated list
Workbooks.Open( myFile,,false,, ,,true)
I don't know what the rules are for Javascript.
--
Regards,
Tom Ogilvy
"Derek Richards" <De**********@y ahoo.com> wrote in message
news:2d******** *************** ***@posting.goo gle.com... The following syntax is what I found under the Help in Excel's VBA Editor (you may refer to it for the details of each parameter). i specified to open in Write mode (Read Only is false), it doesn't do the way as I wished to open in Write mode. Instead, still saw (Read Only) above the MenuBar on the upper left corner when an excel file is opened.
Syntax
expression.Open (FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPasswor d, IgnoreReadOnlyR ecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMRU)
Here I care nothing else but opening a file in Read & Write. How to specify the parameters to open in Read & Write in javascript given the syntax?
Thanks very much.
What does it have to do with tea and China(with JavaScript and Web)?
If you are looking for a JScript "hook" to VBA, you can do something
like this:
function openExcel() {
var Excel = new ActiveXObject(" Excel.Applicati on");
Excel.Visible = true;
Excel.Applicati on.Workbooks.Op en("C:\\MyBook. xls");
//...
}
It opens MyBook in the normal (read/write) mode like if you run it in
the conventional way. Of cource it works with security warnings, only on
Internet Explorer, and only on your own computer (or within a LAN, see
second optional parameter of ActiveXObject).
If you want to serve a book to Explorer over the Web, just use a regular
link <a href="http://..../MyBook.xls"> Of course you cannot save changes
back to server, but you can edit and save on your computer.
Post the code you have that doesn't work....
Tim
"Derek Richards" <De**********@y ahoo.com> wrote in message
news:2d******** *************** ***@posting.goo gle.com... The following syntax is what I found under the Help in Excel's VBA Editor (you may refer to it for the details of each parameter). i specified to open in Write mode (Read Only is false), it doesn't do the way as I wished to open in Write mode. Instead, still saw (Read Only) above the MenuBar on the upper left corner when an excel file is opened.
Syntax
expression.Open (FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPasswor d, IgnoreReadOnlyR ecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMRU)
Here I care nothing else but opening a file in Read & Write. How to specify the parameters to open in Read & Write in javascript given the syntax?
Thanks very much.
Hi Tim, thanks.
Here it is.
e.Workbooks.Ope n(strFileName, null, false, null, null, null, true);
However, the file is still opened in Read-Only. How strange it is! Any suggestions?
"Tim Williams" <sa******@pacbe llremovethis.ne t> wrote in message news:<u1******* *******@TK2MSFT NGP11.phx.gbl>. .. Post the code you have that doesn't work....
Tim "Derek Richards" <De**********@y ahoo.com> wrote in message news:2d******** *************** ***@posting.goo gle.com... The following syntax is what I found under the Help in Excel's VBA Editor (you may refer to it for the details of each parameter). i specified to open in Write mode (Read Only is false), it doesn't do the way as I wished to open in Write mode. Instead, still saw (Read Only) above the MenuBar on the upper left corner when an excel file is opened.
Syntax
expression.Open (FileName, UpdateLinks, ReadOnly, Format, Password, WriteResPasswor d, IgnoreReadOnlyR ecommended, Origin, Delimiter, Editable, Notify, Converter, AddToMRU)
Here I care nothing else but opening a file in Read & Write. How to specify the parameters to open in Read & Write in javascript given the syntax?
Thanks very much.
I can bet your file will be opened in Read-Only as was in my cases.
"VK" <sc**********@y ahoo.com> wrote in message news:<3f******* *************** *@news.freenet. de>... What does it have to do with tea and China(with JavaScript and Web)?
If you are looking for a JScript "hook" to VBA, you can do something like this:
function openExcel() { var Excel = new ActiveXObject(" Excel.Applicati on"); Excel.Visible = true; Excel.Applicati on.Workbooks.Op en("C:\\MyBook. xls"); //... } It opens MyBook in the normal (read/write) mode like if you run it in the conventional way. Of cource it works with security warnings, only on Internet Explorer, and only on your own computer (or within a LAN, see second optional parameter of ActiveXObject).
If you want to serve a book to Explorer over the Web, just use a regular link <a href="http://..../MyBook.xls"> Of course you cannot save changes back to server, but you can edit and save on your computer. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Powell |
last post by:
if (is_array($_POST)) {
foreach ($this->getAssocSectionsObjArray($key, $dbAP) as
$obj) {
print_r($obj); print_r(" in array? ");
print_r(in_array($obj, $result)); print_r("<P>");
if (!in_array($obj, $result)) array_push($result, $obj);
}
}
|
by: M.E. |
last post by:
I have following not working it report that I have
Can't find string terminator "STR" anywhere before EOF at init.pl line 50.
Compilation failed in require at /s101/home4/sgiwedding/cgi/form.pl line 9.
I can not find how to fix this as I really don't know anything about pearl
and need to get this form working .
Terminator STR is there so why it is complaining?
Can you please help?
|
by: Jon Jagger |
last post by:
I was thinking about how you can only use sizeof to find the size of an
unmanaged type. I started to wonder if there was a way to find the size of a
managed object and came up with the following. It's not guaranteed behaviour
but it seems to work. Doesn't lose verifiability either. Enjoy.
Cheers
Jon Jagger
namespace JSL
|
by: i.r.f. |
last post by:
Recently I ran into a problem that I traced to something which completely
surprised me: the relative order of stack unwinding and finally block
execution in mixed C++ appears to vary depending on how execution leaves the
corresponding try block.
Consider the following abbreviated code:
// some unmanaged class
__nogc class Foo
{
|
by: Norman Yuan |
last post by:
In my cuurent ASP.NET project, a weird thing happens: when I test-run the
project and a uncatched run error occurs, VS quits the test-run, as
expected. If I try to run the project again (either start it inside VS.NET
or directly call the page from IE), I get server error, pointing to
"machine.cofg" file at following portion:
<compilation ...>
<compilers>
...
</compilers>
| |
by: one man army |
last post by:
Hi All-
I am new to PHP. I found FAQTS and the php manual. I am trying this
sequence, but getting 'no zip string found:'... PHP Version 4.4.0
$doc = new DomDocument;
$res = $doc->loadHTMLFile("./aBasicSearchResult.html");
if ( $res == true )
{
$zip = $doc->getElementById('zipRaw_id')->value;
if ( 0 != $zip ) {
|
by: Extremest |
last post by:
I know there are ways to make this a lot faster. Any
newsreader does this in seconds. I don't know how they do
it and I am very new to c#. If anyone knows a faster way
please let me know. All I am doing is quering the db for
all the headers for a certain group and then going through
them to find all the parts of each post. I only want ones
that are complete. Meaning all segments for that one file
posted are there.
using System;
|
by: JohnQ |
last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post).
It would be more than a little bit nice if C++ was much "cleaner" (less
complex) so that it wasn't a major world wide untaking to create a toolchain
for it. Way back when, there used to be something called "Small C". I wonder
if the creator(s) of that would want to embark on creating a nice little
Small C++ compiler devoid of C++ language features that make...
|
by: dp_pearce |
last post by:
I have some code that takes data from an Access database and processes
it into text files for another application. At the moment, I am using
a number of loops that are pretty slow. I am not a hugely experienced
python user so I would like to know if I am doing anything
particularly wrong or that can be hugely improved through the use of
another method.
Currently, all of the values that are to be written to file are pulled
from the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |