Go Back   Scooter Forums > Beyond Compare 3 Discussion > Other Session Types
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 27-Jan-2011, 08:21 AM
Coinadrink Coinadrink is offline
Visitor
 
Join Date: Jan 2011
Posts: 3
Default Windows Script Host Error

I'm sorry if this has been mentioned before, I did search, but couldn't find anything.

Today we needed to compare two XLS files, so I tried this out in a demo of BC that I had installed on my system recently. This worked great, so we decided to purchase BC... I upgraded the demo version using the menu option, then entered the licence info.

But when I tried to compare the files I had been comparing previously... an error message popped up:

Windows Script Host
Script: C:\Program Files\Beyond Compare 3\Helpers\XLS_to_CSV_Single.vbs
Line: 19
Char: 1
Error: Object doesn't support this property or method: 'AutomationSecurity'
Code: 800A01B6
Source: Microsoft VBScript runtime error

...any ideas?

I hadn't changed the XLS file, since the last time I was working on it and it still opens fine in Excel.
Reply With Quote
  #2  
Old 27-Jan-2011, 05:35 PM
Chris Chris is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 3,793
Default

Beyond Compare uses a Visual Basic script to open XLS files in Excel, then convert them to CSV to open in the Data Compare.

The "AutomationSecurity" mentioned is about a setting to disable macros when the files are opened in Excel for the conversion.

What version of Microsoft Excel do you have on your computer?
__________________
Chris K Scooter Software
Reply With Quote
  #3  
Old 28-Jan-2011, 01:30 AM
Coinadrink Coinadrink is offline
Visitor
 
Join Date: Jan 2011
Posts: 3
Default

It's a bit of an old version on this system I'm afraid.

Excel 2000 running on XP.
Reply With Quote
  #4  
Old 28-Jan-2011, 01:18 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,434
Default

Hello,

If you go to our Beyond Compare 3\Helpers directory, you should see a XLS_to_CSV_Single.vbs file used for our Data Compare conversion. Please open and edit this file using Notepad.

If you comment out 3 lines using the ' character (similar to the lines at the top of the file), does it improve performance for you? The lines are:
mso = app.AutomationSecurity
app.AutomationSecurity = msoAutomationSecurityForceDisable

and

app.AutomationSecurity = mso
__________________
Aaron P Scooter Software
Reply With Quote
  #5  
Old 31-Jan-2011, 02:22 AM
Coinadrink Coinadrink is offline
Visitor
 
Join Date: Jan 2011
Posts: 3
Default

Yep, that fixed it, thanks for your time.
Reply With Quote
  #6  
Old 01-Feb-2011, 10:52 AM
Erik Erik is offline
Team Scooter
 
Join Date: Oct 2007
Posts: 433
Default

You may run into this problem if you're running Excel 97 or Excel 2000.

If so, download the attached file and save it as "XLS_to_CSV_Single.vbs" in the "Helpers" subfolder of your BC3 installation folder.

This will be fixed in an upcoming release.
Attached Files
File Type: txt XLS_to_CSV_Single.txt (976 Bytes, 9 views)
__________________
Erik Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:21 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.