Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 211 Vote(s) - 3.62 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to GetObject JScript // VBA

#1
I'm using JScript in Excel VBA via scriptcontrol. In 32bit this is simply the following;

Dim Script As Object
Set Script = CreateObject("ScriptControl")
Script.Language = "JScript"

In 64bit this natively doesn't work, as Windows/Office 64bit doesn't support ScriptControl. I use Tablacus' Scriptcontrol for 64bit as a solution, and while this generally works great, it doesn't seem to support the Jscript function "getObject" (setting it up is the same as above, as Tablacus just gives a dll reference to support scriptcontrol).

In 32 bit, the following works fine:

Script.Eval "var Workbook = GetObject('', 'Microsoft.Excel').Workbooks('MyMagicWorkbook.xls')"

In 64 bit, it gives me "GetObject is undefined" - I have listed it as an issue on the Tablacus' support page, but in the meantime am wondering if there is an alternative to 'GetObject' that I could use to refer to an excel workbook from Jscript?
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through