Ask a Question

objSpread2 missing error in "excelcompare"

SOLVED
synchi64
Occasional Contributor

objSpread2 missing error in "excelcompare"

after installing the "Compare Excel files" (https://support.smartbear.com/viewarticle/9046/) and trying to run it, i was faced with an error saying that the "objSpred2" was missing and i can't find any fix for it, does anyone has any clue on what causes the error and how to fix it?

Excel Compare Error.PNG

13 REPLIES 13
BenoitB
Community Hero

Do you have Excel or the Access database installed ?

https://www.microsoft.com/en-us/download/details.aspx?id=13255

It certainly use one of them.

 

As for me, used it without any problem.

Un sourire et ça repart

synchi64
Occasional Contributor

i do have both excel and access installed on the computer

BenoitB
Community Hero

For me that means that the second Excel to compare is either not available/found or invalid.

 

You can try to rebuild your own comparison to check if everything is ok

https://www.go4expert.com/articles/vb-script-compare-excel-files-multiple-t18330/

(Perhaps the script extension comes from this article)

 

 

Un sourire et ça repart

synchi64
Occasional Contributor

i tested both excel links, both links are correctly typed, the error occurs when the comparison starts,

as for the "rebuild your own" i'm not sure how to go about it, do i try to create a script to export from the code in the link or am i missing somthing?

AlexKaras
Champion Level 3

@synchi64 :
Hi,

 

a) Your screenshot references ExcelCompare.tcx script extension, while the referenced help article talks about ExcelSheetCompare.tcx one;

b) Script extensions are .zip archives, so you can open them and examine their internals to understand the source of the problem;

c) objSpread2 variable in the ExcelCompare.tcx script extension is initialized with this line of code:

Set objSpread2 = objExcel.Workbooks.Open(secondFile)

So for me it looks like that Excel failed to open secondFile file and thus you got an error that objSpread2 object is required later in script extension code.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
tristaanogre
Esteemed Contributor

note: If any excel sheet is open and in use when it is tried to be opened by the comparison extension, that may generate that same error.  So, make sure you've closed all copies of the excel sheet before you run the comparison.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

BTW, this script should be improved, bad error management ;(

Un sourire et ça repart

tristaanogre
Esteemed Contributor


@BenoitB wrote:

BTW, this script should be improved, bad error management ;(


Feel free to do so.  It's a Script Extension so it's wide open for anyone to take it and make mods to it. 🙂


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
sonya_m
SmartBear Alumni (Retired)

Thank you for participating in this discussion everyone!

 

Hi @synchi64, looks like the Community has provided you with more suggestions. Were you able to solve the issue? Would be great to hear about you progress! 


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: