Re: Need to make a vbs, but dont know how....



John / Anyone,

Im not really sure that I can verify the syntax and im getting a syntax
error on line 2.

I dont think I have a vbscript editor, I usually use notepad, but I
pasted it into Excel vba and it didnt show up red.

Confused........

Can you advise any further?

Duncan


John.Greenan wrote:

Ok, so create a script like this (I am not using an editor, so you'll have to
verify the syntax yourself)

--------------------------------------------------------------------------------
Dim myExcelApplication

set myExcelApplication = GetObject("Excel.Application")

myExcelApplication.ignoreremoterequests = false

myExcelApplication.quit
set myExcelApplication = nothing
--------------------------------------------------------------------------------

Have a go with that...

If this helps then please mark the reply as helpful




--
www.alignment-systems.com


"Duncan" wrote:

Setting: application.ignoreremoterequests = false

VBScript: yes, because if i do it simply via a macro then users wouldnt
be able to perform this by clicking on a shortcut, cos it wouldnt load
the shortcut up with the setting set to true so catch 22 situation!

Q: I didnt know vbscript was different to vba, just thought it was a
differant version of the same thing because the commands appeared
similar to me....shows my ignorance really doesnt it!

Any help would be much appreciated.

Duncan




John.Greenan wrote:

A few questions:
What setting do you want to change in Excel?
Do you want to create a VBScript? [Note - vbscript is nothing to do with
Excel and the vba language that Excel uses]

Post back with some answers and I'll try to help

--
www.alignment-systems.com


"Duncan" wrote:

Hello All,

I need to create a VBS that will change the setting in excel (ignore
other applications) to false, but I dont really know how to do this.

I have played around with a .inf file someone posted on here but cannot
get that to work either....it says installation failed..(ill put it
below, in case it can be changed to make it work but I dont know how to
do that either!)


' [Version]
Signature=$CHICAGO$


' [DefaultInstall]
BitReg=Bit.Settings


' [Bit.Settings]
HKCU,Software\Microsoft\Office\10.0\Excel\Options,Options,0x00000001,0x40,0


(the above is exactly as I have it, i put the commas in because thats
what I thought was going wrong, but apparantly not.

Any help at all would be much appreciated.

Duncan





.



Relevant Pages

  • Re: Need to make a vbs, but dont know how....
    ... set myExcelApplication = GetObject ... VBScript: yes, because if i do it simply via a macro then users wouldnt ... What setting do you want to change in Excel? ... but I dont really know how to do this. ...
    (microsoft.public.excel.programming)
  • Re: is this function correct?
    ... The syntax of the first one looks wrong. ... David Biddulph ... excel is in french? ... I dont know how to translate the ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Need to make a vbs, but dont know how....
    ... VBScript: yes, because if i do it simply via a macro then users wouldnt ... What setting do you want to change in Excel? ... but I dont really know how to do this. ...
    (microsoft.public.excel.programming)
  • new to excel and vbscript - need help
    ... I am familiar with MS EXcel but I dont know VBscript, ... I have a XL sheet with data in three columns - A,B and C. ...
    (microsoft.public.scripting.vbscript)
  • Re: Hyperlink field code
    ... maybe I still haven't understood the syntax correctly. ... Folder, Excel Subfolder). ... Entering hyperlink fields can be tricky. ... Files), click the Bookmark button, and select the range from the ...
    (microsoft.public.word.docmanagement)