Jump to content

Zoomulator

Members
  • Posts

    6
  • Joined

  • Last visited

Zoomulator's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hah, that did the trick! (Re-installing using the msi instead of click-and-run) Microsoft sure knows how to make things not work and leave a minimum amount of trace behind to fix it. Thanks again
  2. It's missing alright! And I did use the click-and-run when I installed it a few months back. So I've uninstalled it and now I'm downloading the MSI. 1GB is insane... how bloated can software get now days anyway? Oh well, I'll keep you posted. Thanks for all the help so far!
  3. Yes, starting Excel manually isn't a problem. Unfortunately, I've only got a single computer licence for office so I can't try it out anywhere else. I've tried ObjGet( "", "Excel.Application" ) while office was running, and it gives the same error. Found some vague information: http://stackoverflow.com/questions/3189641/invalid-class-string-using-excel-2010 I guess excel has failed to put the right entry in the registry?
  4. Neat! Here's the result: does that make sense at all?
  5. Thanks for the reply! I do run the 32bit version. I inserted that line in the script, but no change. I tried both running and compiling the script as X86 aswell, but no go. I've just copy pasted from the AutoIt help file, "Obj/COM reference" where there's a snipped for Excel. This is what it looks like now: #AutoIt3Wrapper_UseX64= N $oExcel = ObjCreate( "Excel.Application") if @error Then Msgbox (0,"ExcelTest","Error Getting an active Excel Object. Error code: " & hex(@error,8)) exit endif $oExcel.Visible = 1 $oExcel.WorkBooks.Add $oExcel.ActiveWorkBook.ActiveSheet.Cell(1,1).Value = "test"
  6. I've been trying for so many hour to get an activeX handle to Excel 2010 to work. First I tried to do it with the WSH using the WScript.CreateObject( "Excel.Application" ) but for some reason it throws an error and says "Could not locate automation class named 'Excel.Application'.", although every example I've seen does it exactly like so. Tried searching on google about the error but failed to find anything of relevance. So I thought I'd try to turn to AutoIt. I've read through the help document, ran a few scripts and it's pretty much the same. I've tried a bunch of different examples with Excel, but none of them work! ObjCreate and ObjGet won't return a valid object with "Excel.Application"! Have I missed some not-so-obvious crucial setting somewhere? It seems close to impossible to find anything on google about it anyway. At least I can't find anything after several hours. I'm using Windows 7 x64 if that matters at all. All I want to do with excel is to navigate the cells in a document and paste in some values. Although it's gonna be a few thousand times, hence the need for a script. Any help is highly appreciated!
×
×
  • Create New...