CREATE OBJECT h_excel 'EXCEL.APPLICATION'.

hi all!
I need know, what method or property i have to use, for set up the filename by default, for the workbook that i created.
thank in advance

You assign the file name when you save the file.
For example......
data: e_sheet type ole2_object.
data: e_appl  type ole2_object.
data: e_work  type ole2_object.
data: e_cell  type ole2_object.
data: e_wbooklist type ole2_object.
parameters: p_file type localfile default 'C:Test.xls'.
start-of-selection.
* Start the application
  create object e_appl 'EXCEL.APPLICATION'.
  set property of e_appl 'VISIBLE' = 0.
* Open the file
  call method of e_appl 'WORKBOOKS' = e_wbooklist.
  get property of e_wbooklist 'Application' = e_appl .
  set property of e_appl 'SheetsInNewWorkbook' = 1 .
  call method of e_wbooklist 'Add' = e_work .
  get property of e_appl 'ActiveSheet' = e_sheet .
  set property of e_sheet 'Name' = 'Test' .
* Position to specific cell  in  Column 1
    call method of e_appl 'Cells' = e_cell
           exporting
                #1 = 1
                #2 = 1.
* Set the value
    set property of e_cell 'Value' = 'ABC'.
** Close the file
  get property of e_appl 'ActiveWorkbook' = e_work.
  call method of e_work 'SAVEAS'
        exporting
            #1 = p_file
            #2 = 1  .        " Don't ask me when closing
  call method of e_work 'close'.
Regards,
Rich Heilman

Similar Messages

  • Create Object with "Photoshop.Application"

    Cannot create an object reference to Photoshop CC using Excel 2011 and vba, is there missing files with the standard installation?

    Hi;
    I have been writing VBA code for many years and have always used Windows up till now, I am attempting to do things on a MAC I can easily do in Windows. I have for years used macros written by myself referencing Adobe Photoshop and also Microsoft Access from within Excel. I have used what is termed 'Late binding" to create objects for the above applications. I understand Access is not useable on the MAC but I believe I should be able to use the macros I have written with slight modifications for file locations. Typically nearly the first executable statement in these macros are as follows
    Dim appRef as Object
    set appRef = CreateObject("Photoshop.Application")
    the second statement when executed allows me the opportunity to use Photoshop (Versions 7 -> CS5 have been successful) to reference all the procedures and functions that would appear on the desktop when using Photoshop.
    According the scripting PDF manual for CS6 they use the same syntax for the VBScript examples. I believe this should work with Photoshop CC. I think when I installed the cloud version I opted for "Typical" installation" instead of maybe selecting "Custom Installation". How do I achieve the use of the above technique? As stated earlier I have used this since Photoshop 7. Any help would be greatly appreciated.
    Thank you,
    Robert Firman

  • EXCEL.APPLICATION

    Hello,
    I have a problem, I want to use the EXCEL.APPLICATION for opening an Excel file, but I want the user gets the control of the edition of that file and  SAP waits to continue executing when user closes the file.
    I used another method (cl_gui_frontend_services=>execute) but for some reasons this function doesn't usefull for me, althought this one waits the end of execution of Excel to continue executing the program.
    I would like if anyone can tell me how I can use EXCEL.APPLICATION (a method or property) so I can open the file and continue with abap execution only when user closes the file.
    Thanks in advance.
    regards
    My code until now:
      DATA: excel1 TYPE ole2_object,
            workbooks1 TYPE ole2_object,
            libro TYPE ole2_object.
      CREATE OBJECT excel1 'EXCEL.APPLICATION'.
    *Make the excel application visible
      SET PROPERTY OF excel1 'Visible' = 1.
      CALL METHOD OF excel1 'Workbooks' = workbooks1.
      SET PROPERTY OF excel1 'DisplayAlerts' = 0.
    Open Pattern
      CALL METHOD OF workbooks1 'Open' = libro
        EXPORTING
          #1 = g_file.

    Hello,
    After openning your Excel book, you can show a popup (a message type I for example) and then when the user accepts the code will continue the execution, saving the file and closing it, as SAP does when you see an Excel format when yo see data table in SE16 and passes to Excel.
    For example:
      MESSAGE i001(za) WITH text-001.
      CALL METHOD OF libro 'Save'.
      CALL METHOD OF libro 'Close'.
    After the message you can execute an popup function module for asking if you want to save the changes, and then you can decide if execute SAVE method or not.
    I hope this can help you.
    Regards.
    Edited by: Luis Rubio on Nov 20, 2008 1:09 PM

  • OLE Automation EXCEL.APPLICATION OPEN === CSV file

    Hi Gurus,
    no probs to open a XLS file via
          CREATE OBJECT grc_excel 'EXCEL.APPLICATION'.
          SET PROPERTY OF grc_excel  'VISIBLE' = 1.
          CALL METHOD OF grc_excel 'WORKBOOKS' = grc_wbook.
    Open Workbook
          CALL METHOD OF grc_wbook 'Open'
            EXPORTING #1 = gfd_filename.
    but how to deal with CSV ? They're opened not properly.
    I tried #2 = 'CSV' but no luck.
    Any Idea?
    Cheers
    carsten

    COMMA separated files are SEMICOLON separated files in German Windows systems.
    This ist set in Windows System settings for regions (enhanced).
    EXCEL considers this settings when running normally. CSV is stored with ; and will be loaded properly after.
    In OLE mode, EXCEL does not consider this regional setting and expects COMMA
    If there's no option to tell lthe open method of OLE-Excel, I must translate SEMICOLIN toCOMMA before with all risks to translate text instead of separators...
    I saw some opens with #2 as parameter for "read only" but nothing regarding "separator character" (CL_RMPS_MS_OFFICE_TOOLS~GET_BUILTIN_DOC_PROPS_FROM_FIL)
    Thanks & Cheers
    carsten

  • How to Use AccessibleObjectFromWindow API in VBA to Get Excel Application Object from Excel Instance Window Handle

    I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWindow
    function. It seems to return a value of -2147467262 in all cases. Therefore, I believe that it is returning an error value. I can't figure out how to determine the meaning of this value.
    If it is an error value, I believe that one or more arguments are in error. My best guess at present is that the GUID argument is incorrect. I have tried two GUID values: {00020400-0000-0000-C000-000000000046} and {90140000-0016-0409-0000-0000000FF1CE}.
    I have seen both used in conjunction with OBJID_NATIVEOM. Neither one seems to work. I really would prefer not to use the second one as it has an Excel major and minor version number. I would hate to have to change this code, if a new minor version appeared.
    The attached code has been commented to show which parts have been shown to work and which not. I'm at my wits end and really need help.
    Thanks
    'This module is located in Access 2010, but this is an Excel question.
    Option Compare Database
    Option Explicit
    ' Module-Level Declarations
    'The GetDesktopWindow function and FindWindowEx function work just fine.
    Public Declare Function GetDesktopWindow Lib "user32" () As Long
    Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, _
    ByVal hWnd2 As Long, _
    ByVal lpsz1 As String, _
    ByVal lpsz2 As String) _
    As Long
    'I'm not getting the expected output from this function (see below)
    Private Declare Function AccessibleObjectFromWindow& Lib "oleacc.dll" _
    (ByVal hwnd&, _
    ByVal dwId&, _
    riid As GUID, _
    xlwb As Object)
    Type GUID
    lData1 As Long
    iData2 As Integer
    iData3 As Integer
    aBData4(0 To 7) As Byte
    End Type
    Function ExcelInstances() As Long
    ' Procedure-Level Declarations
    ' Value of OBJID_NATIVEOM verified by checking list of Windows API constants _
    on this site: http://www.lw-tech.com/q1/base.htm
    Const OBJID_NATIVEOM = &HFFFFFFF0
    Dim hWndDesk As Long 'Desktop window
    Dim hWndXL As Long 'Child window
    Dim objExcelApp As Object 'Final result wanted: Excel application object
    'Following variable (xlapp) to be set by AccessibleObjectFromWindow function
    Dim xlapp As Object
    Dim IDispatch As GUID 'GUID used in call to AccessibleObjectFrom Window function
    'Set up GUID to be used for all instances of Excel that are found
    Dim tmp1 As Variant 'Return value from AccessibleObjectFromWindow
    ' Executable Statements
    SetIDispatch IDispatch
    IDispatch = IDispatch
    'Get a handle to the desktop
    hWndDesk = GetDesktopWindow 'This seems to work
    Do
    'Get the next Excel window
    'The following statement seems to work. We are finding and counting _
    correctly all the instances of Excel. hWndXL is non-zero for each _
    instance of Excel
    hWndXL = FindWindowEx(GetDesktopWindow, hWndXL, "XLMAIN", vbNullString)
    'If we got one, increment the count
    If hWndXL > 0 Then
    'This works. We correctly count all _
    instances of Excel
    ExcelInstances = ExcelInstances + 1
    'Here is the problem. The following statement executes and returns a value of _
    -2147467262. xlapp, which is passed by reference to AccessibleObjectFromWindow, _
    is set to nothing. It should be set to the object for Excel.application. _
    I believe that this value is not an object. I tried to reference tmp1. in the _
    immediate window. There was no Intellisense.
    'I think that the function in returning an error value, but I can't figure _
    out what it is. I believe that AccessibleObjectFromWindow returns error _
    values, but I don't know where to find their values so I can interpret the _
    function's results.
    'As best I can tell, the hWndXL parameter is correct. It is the handle for _
    an instance of Excel. OBJID_NATIVEOM is set correctly (see constant declaration _
    above). xlapp is passed by reference as a non-initialized object variable, which _
    will be set by AccessiblObjectFromWindow. IDispatch may be the problem. It is set _
    as shown below in the procedure SetIDispatch(ByRef ID As GUID). This procedure _
    appears to work. I can see that IDispatch is set as I intended and correctly _
    passed to AccessibleObjectFromWindow.
    tmp1 = AccessibleObjectFromWindow(hWndXL, OBJID_NATIVEOM, IDispatch, xlapp)
    'Need to write code to test tmp1 for error. If none, then set objExcelApp = _
    object. Also, I exect xlapp to be set to Excel.application
    End If
    'Loop until we've found them all
    Loop Until hWndXL = 0
    End Function
    Private Sub SetIDispatch(ByRef ID As GUID)
    'Defines the IDispatch variable. The interface _
    ID is {90140000-0016-0409-0000-0000000FF1CE}.
    'NOT USING {00020400-0000-0000-C000-000000000046}, _
    which could be the problem
    '9 is release version - first version shipped (initial release)
    '0 is release type - retail/oem
    '14 is major version
    '0000 is minor version
    '0016 is product ID - MS Excel 2010
    '0409 is language identifier - English
    '0 is x86 or x64 - this is x86
    '000 reserved
    '0 is debug/ship
    '000000FF1CE is office family ID
    With ID
    .lData1 = &H90140000
    .iData2 = &H16
    .iData3 = &H409
    .aBData4(0) = &H0
    .aBData4(1) = &H0
    .aBData4(2) = &H0
    .aBData4(3) = &H0
    .aBData4(4) = &H0
    .aBData4(5) = &HF
    .aBData4(6) = &HF1
    .aBData4(7) = &HCE
    End With
    End Sub
    DaveInCalabasas

    I don't think you can return a reference to Excel's main window like that as you are attempting to do.
    Ref:
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd317978(v=vs.85).aspx 
    It's relatively straightforward to return any workbook's window in any given instance, and in turn it's parent Excel app. Try the following and adapt as required (and include error handling) -
    Option Explicit
    Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
    ByVal lpsz2 As String) As Long
    Private Declare Function IIDFromString Lib "ole32" _
    (ByVal lpsz As Long, ByRef lpiid As GUID) As Long
    Private Declare Function AccessibleObjectFromWindow Lib "oleacc" _
    (ByVal hWnd As Long, ByVal dwId As Long, ByRef riid As GUID, _
    ByRef ppvObject As Object) As Long
    Private Type GUID
    Data1 As Long
    Data2 As Integer
    Data3 As Integer
    Data4(7) As Byte
    End Type
    Private Const S_OK As Long = &H0
    Private Const IID_IDispatch As String = "{00020400-0000-0000-C000-000000000046}"
    Private Const OBJID_NATIVEOM As Long = &HFFFFFFF0
    Sub test()
    Dim i As Long
    Dim hWinXL As Long
    Dim xlApp As Object ' Excel.Application
    Dim wb As Object ' Excel.Workbook
    hWinXL = FindWindowEx(0&, 0&, "XLMAIN", vbNullString)
    While hWinXL > 0
    i = i + 1
    Debug.Print "Instance_" & i; hWinXL
    If GetXLapp(hWinXL, xlApp) Then
    For Each wb In xlApp.Workbooks
    Debug.Print , wb.Name
    Next
    End If
    hWinXL = FindWindowEx(0, hWinXL, "XLMAIN", vbNullString)
    Wend
    End Sub
    'Function GetXLapp(hWinXL As Long, xlApp As Excel.Application) As Boolean
    Function GetXLapp(hWinXL As Long, xlApp As Object) As Boolean
    Dim hWinDesk As Long, hWin7 As Long
    Dim obj As Object
    Dim iid As GUID
    Call IIDFromString(StrPtr(IID_IDispatch), iid)
    hWinDesk = FindWindowEx(hWinXL, 0&, "XLDESK", vbNullString)
    hWin7 = FindWindowEx(hWinDesk, 0&, "EXCEL7", vbNullString)
    If AccessibleObjectFromWindow(hWin7, OBJID_NATIVEOM, iid, obj) = S_OK Then
    Set xlApp = obj.Application
    GetXLapp = True
    End If
    End Function
    Note as written if an instance does not have any loaded workbooks a reference will not be returned (though a workbook can be added using DDE, but convoluted!)
    FWIW there are two other very different approaches to grab all running Excel instances though something along the lines of the above is simplest.
    Peter Thornton

  • Error  when instantiating a Com( EXCEL.APPLICATION) object in WINDOWS XP

    Hi,
    I am using coldfusion MX7 and OS is WindowXP. I am using COM
    object with Excel.Application for my program. but it is giving the
    below error. But same program is working in Window Profesional.
    ERROR IS:
    An exception occurred when instantiating a Com object.
    The cause of this exception was that: AutomationException:
    0x80080005 - Server execution failed. Note that Windows 95 does not
    support automatic launch of a server, it must be running already.
    The error occurred in
    C:\CFusionMX7\wwwroot\XXX\report_top20.cfm: line 15
    13 : t1=now();
    14 : path=GetDirectoryFromPath(ExpandPath("*.*"));
    15 : xl=CreateObject("COM", "Excel.Application");
    16 : wbks=xl.workbooks;
    17 : tmp=wbks.open(path & "top20_template.xls");
    Plz help me.
    Reagrds,
    DRA.

    Hi,
    If possible, would you please share your Excel file with us, you can upload it to a file sharing site(Like OneDrive), and then share the link with us. Also please take a look of this article:
    http://support.microsoft.com/kb/178510
    For the warning message, It means that in Excel 2010 and Excel 2007, you can use special effects, such as transparent shadows that are not supported in Excel 97-2003. The special effects will be removed. In the Compatibility Checker, click
    Find to locate the objects that have special effects applied so that you can remove those effects as needed.
    Wind Zhang
    TechNet Community Support

  • SharePoint PowerShell script to open Excel.Application on Windows server 2008 R2

    Hi
    I am building a PowerShell script to open an Excel file store on SharePoint document library.  Sound simple enough but I just couldn't get over an error and hopefully someone can help give an answer here.
    I have found many sample codes to use.  All of the sample codes show that a new object must be created for Excel application
    like ($Excel = New-Object -comobject Excel.Application) before that excel file can be read.
    When I run this comand on a SharePoint server (Windows 2008 R2) either inside the script or by itself I keep getting the following error:
     New-Object : Cannot load COM type Excel.Application.
    + $excel = New-Object <<<<  -Com Excel.Application
        + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
    For the test,  I ran this comand on a Windows 7 with MS Office applications installed,  then it ran fine.
    Is that because I don't have Office application (Excel) installed on the server to run this or some services need to be turned on?
    From the sample codes, look like I should be able to run it on the Server with SharePoint installed.
    Thanks for any advice or solution to resolve my issue.
    Swanl

    So I'm assuming this won't return anything either?
    Get-WMIObject Win32_ClassicCOMClassSetting | ? {$_.VersionIndependentProgId -like 'excel.application'}
    You need Office/Excel installed on the server because you're accessing those .DLLs for the automation functionality, but depending on what you're trying to do you may be able to use one of the office viewers:
    http://www.microsoft.com/en-us/download/details.aspx?id=10 although I'm not sure how much of the com (if any) is exposed in a viewer install.  if Office is not possible due to
    budget reasons, I believe there are several 3rd party providers who can produce a com object that will handle Excel formats.

  • Error starting Web Start App: automation server cannot create object

    When starting Web Start Application without java installation just by starting javaws xyz.jnlp in Windows2000 there comes 2 times the Error Message "Microsoft JScript: automation server cannot create object", but the application starts nevertheless.
    Where does this error come from?
    How can we avoid it?

    see:
    http://forum.java.sun.com/thread.jspa?threadID=639218&tstart=10
    this dialog is thrown from the IE javascript engine when Java Web Start tries to invoke it to resolve the correct proxy for a given URL using the configured PAC file.
    /Andy

  • I am mac user and want to create Object in VBA macro. when i write "set objwrd=createObject("Word.Application")"- it returns "runtime error "492" can't create object". now what it alternative to create object for word in excel macro???

    I am mac user and want to create Object in VBA macro. when i write "set objwrd=createObject("Word.Application")"… it returns "runtime error "492" can't create object". now what it alternative to create object for word in excel macro???

    Any help here...
    http://support.microsoft.com/kb/288117
    http://www.macworld.com/article/1154785/welcomebackvisualbasic.html

  • Invalid method "Save As" from Excel application object

    I have Windows 2000 and Excel 2002 installed on my machine.
    I down loaded "renamed Excel 2000 workbook.vi" from NI website. Relinked ref num to Excel application object but get the error of invalid method (Save As). Tried to relink invoke node to Save As by selecting method from drop down menu. However this method is not on the list. Tried other excel objects but can not find "Save As" method. Has this been removed/moved?

    I was able to correct the error by relinking the Workbooks->Open to Open. This changes the subsequent Invoke Node from IAppEvents to _Workbook. There you will find the Save As method.
    Michael
    www.abcdefirm.com
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • Could not edit original smart object because the application which created the smart object could not be launched

    could not edit original smart object because the application which created the smart object could not be launched

    Hi there,
    I got this problem when I installed Adob master collection Over CS 5.
    I had children book story storis which created in Adobe illustrator CS 5 and I created art boards in Adobe photoshop cs 5.
    After installting CS 6 i tried to edit the smart objects and it was not opeinging the smart object file in Illustrator.
    I did some tests.
    1) Right click on smart object layer and click export contents. Save on desktopp or anywhere you want. (I saved on desktop)
    2) I had this file on my desktop (Vector Smart Object10.ai) but it didn't show any icon, which program should open this type of file.
    3) Double click on the file and it pop up a extension window 'Click on change and select adobe illustrator' and press OK.
    4) Go back to your photoshop file and right click on smart object layer and click dit content. now this time it opens up assets in illustrator.
    ENJOY!
    Thanks
    Haroon
    www.4d-studios.co.uk

  • Visual Basic 6 application moved to new server - activex component can't create object

    I have to move a VB6 application that was running on a Windows 2003 machine to a new Windows 2008 machine.
    This EXE application was using classes defined in a DLL using the Createobject method.
    Now, after the class instance has been created by Createobject, when the program calls the methods error 429 "activex component can't create object" is issued.
    The DLL has been registered on the new server using the command :
    regsvr32 c:\folderx\dllname.dll
    Which is the right forum to get help on this ?
    Thanks.

    Hello,
    As Dave says, VB 6 is no longer supported by Microsoft.
    I’d suggest asking in one of the following third-party forums which support Visual Basic 6.
    VB forums
    VB City
    For further information, see:
    Where to post your VB 6 questions
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Internetexplorer.application activex component can't create object

    I am getting the infamous 429 error with a new image of Windows 2003 Server.
    I am sure this is an issue with the Windows 2003 Server image, so I have to figure out a work around to get this  to work.  No updates to the image are possible.  I have been searching for a solution for a couple of days and nothing I have
    tried has worked so any assistance you can provide is most welcome.
    This script works just fine on my Windows 7 machine and used to work just fine on the previous image of Windows 2003 Server I had which is no longer available:
    Err.Number: 429
    Err.Description: "ActiveX component can't create object"
    Here is the code:
    On Error Resume Next
    Set fsoObj = CreateObject("Scripting.FileSystemObject")
    Dim objIE
    Err.Clear
    Set objIE = CreateObject( "InternetExplorer.Application" )
    If ( Err.Number <> 0 ) Then
       WScript.Echo "Number (" & Err.Number & ")" & vbCrLf _
                  & "Description [" & Err.Description & "]"
       WScript.Quit
    End If
    objIE.Navigate "about:blank"
    objIE.Width          = 200
    objIE.Height         = 300
    Do Until objIE.ReadyState = 4
       WScript.Sleep 200
    Loop
    Do While objIE.Busy
       WScript.Sleep 200
    Loop
    bodyStr = javaScriptStr & "<table align='center'><tr><td align='center' colspan='2'>Click Run or Cancel</td></tr>" _
            & "<tr align='center'>" & vbCrLf _
            & "<td colspan='2'>" & vbCrLf _
            & "<input type='submit' value=' Run ' " & "OnClick='VBScript:OK.Value=1'>" & vbCrLf _
            & " &nbsp; &nbsp; " & vbCrLf _
            & "<input type='submit' value=' Cancel ' " & "OnClick='VBScript:CANCEL.Value=1'>" & vbCrLf _
            & "</td></tr>" & vbCrLf _
            & "</table>" & vbCrLf _
            & "<input type='hidden' id='CANCEL' name='CANCEL' value='0'>" & vbCrLf _
            & "<input type='hidden' id='OK' name='OK' value='0'>"
    objIE.Document.Body.InnerHTML = bodyStr
    objIE.Visible = True
    Do While ( ( objIE.Document.All.CANCEL.Value = 0 ) AND ( objIE.Document.All.OK.Value = 0 ) )
       WScript.Sleep 200
       If Err Then ' user clicked red X (or alt-F4) to close IE window
          objIE.Quit
          Set objIE = Nothing
          logFile.WriteLine Now & " - aborting input!"
       End if
    Loop
    objIE.Quit

    I tested this cleaned up version on WS2003.  It works exactly the same way as it does on Windows 8 and Windows 7.
    Set objIE = CreateObject( "InternetExplorer.Application" )
    objIE.Navigate "about:blank"
    objIE.Width = 200
    objIE.Height = 300
    Do While objIE.Busy
    WScript.Sleep 200
    Loop
    bodyStr = javaScriptStr & "<table align='center'><tr><td align='center' colspan='2'>Click Run or Cancel</td></tr>" _
    & "<tr align='center'>" & vbCrLf _
    & "<td colspan='2'>" & vbCrLf _
    & "<input type='submit' value=' Run ' " & "OnClick='VBScript:OK.Value=1'>" & vbCrLf _
    & " &nbsp; &nbsp; " & vbCrLf _
    & "<input type='submit' value=' Cancel ' " & "OnClick='VBScript:CANCEL.Value=1'>" & vbCrLf _
    & "</td></tr>" & vbCrLf _
    & "</table>" & vbCrLf _
    & "<input type='hidden' id='CANCEL' name='CANCEL' value='0'>" & vbCrLf _
    & "<input type='hidden' id='OK' name='OK' value='0'>"
    objIE.Document.Body.InnerHTML = bodyStr
    objIE.Visible = True
    On Error Resume Next
    Do While ( ( objIE.Document.All.CANCEL.Value = 0 ) AND ( objIE.Document.All.OK.Value = 0 ) )
    If Err Then ' user clicked red X (or alt-F4) to close IE window
    WScript.Echo Now & " - aborting input!"
    WScript.Quit
    End if
    WScript.Sleep 200
    Loop
    WScript.Echo Now & " - EXITING!"
    objIE.Quit
    ¯\_(ツ)_/¯

  • ActiveX component can't create object:'Photoshop.Application'

    I am running Photoshop CS5.1 on a Windows 7 64-bit system. (Part of CS5.5 Master Collection installation)
    All I am trying to do is run the sample .vbs scripts that come with Photoshop.
    When I double click on any of the sample scripts, the Photoshosp window comes to the front and then after about 10 seconds I get the error:
    ActiveX component can't create object:'Photoshop.Application'
    This happens if I have Photoshop 64-bit or 32-bit running.
    This happens on two different computers running Windows 7.
    I couldn't find any solutions in a Google search.
    Any ideas?
    Thanks in advance.

    I got it working after I installed the x32 bit version of PS on my Windows 7 (64-bit) machine.
    I also selected "Run as Administator" when I launch PS once, and then rebooted. they was necessary to get permission for the type libraries it seems.
    http://screencast.com/t/4bw8XdKu

  • Cannot open PDFs inserted as objects into Excel.

    Two-part question.  I know this has been addressed before, but the solutions are not working for me.
    I have Adobe Acrobat 9 Pro and Adobe Reader XI.  When inserting a PDF document as an object into Excel, it will not allow me to insert the icon/object from the "Create New" option.  I get one of two error messages: 'Cannot insert object'  or 'Cannot start the soruce application for this object'.  I am able to insert the PDF icon/object if I insert from the "Create from file" option. (Please note I cannot always link to the PDF, as some spreadsheets are sent out externally and will not have access.)
    Once I am finally able to insert the document as an object, I can open and view the PDF.  However, when I close the spreadsheet and re-open it, if I try to open the PDF document again, I get this error message again: 'Cannot start the soruce application for this object'.
    I have changed my preference to disable the Protected Mode at startup and this issue is still happening.  VERY frustrating.  I never encountered this is past versions of Adobe and all previous suggestions are not fixing the issue.  Does anyone have any insight or know of an update to fix this issue?  Is this an Adobe issue or a Microsoft Office issue?

    Hi Jerry,
    Can you check the similar thread
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d554e88c-d72f-46b0-8b1a-2f2024fcb9c0/i-e-8-browser-wont-open-pdf-file-returned-from-sharepoint-2010-search?forum=sharepointadminprevious
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

Maybe you are looking for