Calling DDE from Excel 2010 crashing on Win 8.1 VM

Trying to use DDE to connect Excel to an external application (Vensim DSS) on a windows 8.1 virtual machine (VM) which seems to hang Excel (specifically when you call DDEInitiate). I have no problems with the same VBA script (code reproduced below if needed)
on a standard PC with windows 8.1 and Vensim DSS. Also a previous incarnation with windows 7 VM and Vensim worked with no problem. Does anybody have ideas what is different on a win 8.1 VM or some process that I need to ensure is running on the VM for DDE
to work?
I have tried with Excel 2003, Excel 2007 and Excel 2010 and all experience the same issue of hanging when calling the DDEInitiate function. 
Many thanks in advance,
Dave
Option Explicit
Dim DDE_channel As Integer
Function StartupDDE() As Boolean
    Dim blnIsRunning As Boolean
    On Error GoTo Err_Handler
    blnIsRunning = VensimRunningCheck
    'Check to see if Channel Number has already been assigned
    If Not DDE_channel > 0 Or blnIsRunning = False Then
        'Channel not assigned - check to see if Vensim running
        If blnIsRunning = False Then
            'Vensim not running - try to open
            Dim RetVal
            RetVal = Shell("C:\Program Files (x86)\Vensim\Vensim.exe", vbMaximizedFocus)
            AppActivate "Microsoft Excel"
            Excel.Application.Visible = True
        End If
        'Connect to Vensim
        DDE_channel = Application.DDEInitiate("VENSIM", "System")
    End If
    StartupDDE = True
    Exit Function
Err_Handler:
    MsgBox "There was an error trying to connect to Vensim.  Please close and reopen Vensim manually", vbExclamation
+ vbOKOnly, "Vensim Connect Error"
    StartupDDE = False
End Function

Hi,
As far as I know, the DDE is a very old technology, I recommend we try to use the Access object model instead of DDE.
http://msdn.microsoft.com/en-us/library/office/ff192120(v=office.15).aspx
If you have any further question about debugging code, I recommend you post the question to the MSDN forum for Excel
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.

Similar Messages

  • Click to call plugin from outlook 2010 not dialing contacts which are not pulled from AD

    Hi Experts,
    we have this issue with click to call plugging from outlook 2010.
    when there is a mail from a non corporate user ( a person who is not in AD) in the inbox, and we try to make a call to that person, click to call plugging does not allow to make a call from the outlook. Even though this contact is present in the outlook contacts.
    But for corporate users ( who are in AD) there are no issues.
    Is this a limitation of click to call or a configuration error ?
    Regards
    Bejoy Thomas

    Hi Shangxin,
    If you go throught my question again, I mentioned the contact detail for this person is present in the Outlook contacts.
    That is I have saves this person's phone number in my outlook contacts.
    Please let know if you have a solution for this issue.
    Regards
    Bejoy Thomas

  • Excel 2010 crash Terminalserver

    Hi all,
    i have trouble with Excel 2010 that it crash and kill the terminalserver where it is running.
    My enviroment:
    Terminal server: VM WinServer 2008R2 with Citrix XenApp 6.5 and Office 2010 ( STD and or PRO )
    Citrix Provisioning: VM WinServer 2008R2 with Citrix Provisioning services 6.1
    ESX Server: ESX 5.1
    Fileserver 1: VM WinServer 2008R2
    Fileserver 2: VM WinServer 2012R2
    My Problem:
    I logon to the terminalserver and open a *.xls file from a share on the file server 2. First problem is that it takes
    longer to open the file than to open it from file server 1. ( yes it is the same file with the same NTFS permission, because the two servers are in sync via DFSR )
    Second problem is, that when i open that *.xls file, it can happen that the terminal server freeze. Only option than is to do a reset on the vm to reboot it.
    Problem 1 and 2 will not occure when i open the file from file server 1, or when i save the same file as *.xlsx and open it than. Or when the file will be opend from the local drive on the terminal server.
    Thanks for any help or idea.

    Hi,
    This may be caused by some add-ins in Excel, please start Excel in Safe Mode:
    Press Win + R, type "excel.exe /safe" in the blank box, press Enter.
    When Excel starts in Safe Mode, go to FILE -> Open, browse to the file location and try to open it, check if the issue persists.
    If the issue doesn't occur then, please go to FILE -> Options -> Add-Ins to disable the suspicious add-ins and verify which one caused the problem.
    If Excel still crashes, please try to collect the Event Logs from the Event Viewer:
    Press Win + R, type "eventvwr" in the blank box, press Enter. in Event Viewer, expand Windows Logs -> Application and see if there's any error about the Excel crash issue, we may find useful information to find the cause.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Excel 2010 Crashing on .xlsm enabled workbook

    Hi,
    I have a workbook that I had been using for over a year with a very simple formatting macro in it.  As of about two weeks ago, adding new data to the spreadsheet causes Excel to crash, rendering the workbook as corrupt.  I have started fresh with
    a new workbook and re-recorded the macro at least a dozen times, and it will run once - maybe twice - and then, when new data is put into the workbook, it crashes.  The weird thing is, I have anothe workbook that also has a simple formatting macro
    in it and that one runs fine.  Both worksheets get the data from the same source, which is copied and pasted into the workbook with the macro.
    Any ideas?????
    Thanks!
    Nancy

    Hi,
    Have you tried some general steps to troubleshoot this issue? For example, Repair Office. If not, please try this KB and check if they are helpful:
    http://support.microsoft.com/kb/2758592/en-us
    If this issue still exists, we need to collect the event log to do further troubleshoot.
    Steps: Open Event Viewer to check whether there's any error about the Excel/Word crash issue.
    Press Win + R, type "eventvwr" in the blank box, press Enter. In the Event Viewer, browse to Windows Logs -> Application, there may be some errors after the crash.
    To protect your privacy, you may send the error logs to
    [email protected], we will try to find the cause.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • SmartView 11.1.2.2.000 - SmartView tab disappears from Excel 2010

    We are using SmartView 11.2.2.2.000 with Excel 2010.  The SmartView tab frequently disappears from the Excel menu, especially for one particular user.  Each time I walk him thru re-enabling it.  This user's files are usually multiple sheets.  Anyone know why this keeps happening and is there a permanent way to fix it?
    Thanks.
    Terri T.

    Check this article in MOS:
    Smart View Installs Successfully on Windows 7 with Office 2010 32 Bit but Fails to Load on Excel Startup (Doc ID 1364765.1)

  • Using Acrobat X and creating a PDF File from EXCEL 2010, I notice that the Pagination restarts at 1 for each Worksheet included in the PDF.

    I use Acrobat X Standard and created a PDF file from two or more worksheets using EXCEL 2010.
    The resulting PDF file restarts the PAGE # (In header/footer settings of Excel) at 1 for each worksheet.
    However, a colleague of mine who has Acrobat X Pro version, using EXCEL 2010 and same exact file does the same task, he gets a file that starts at page 1 and second worksheet continues the page # from the last page of the First worksheet.
    We both are using the ACROBAT menu (not the print to Adobe printer) to create the file so that we can get Bookmarks included in the resulting file for each worksheet.
    We cannot figure out any option in Acrobat's preferences that controls the pagination on either of these versions of Acrobat.
    So is this just a feature that works one way in Standard version and another way in the Pro version, and the user has no control over it?

    This is so sad. I read your comments and I said, "Huh?" Haha!
    I tried the indexed color option and it did make the final file smaller. Around 600KB. But there's probably another way to make it even smaller like the gazillion-paged pdf file that I mentioned that was only about 300KB.
    And by saying a layout program, does that mean like Adobe InDesign? Does that mean that I should just make my graphics in Photoshop and then import using another program and finish the file there?
    What other layout programs can I use?
    Thank you so much!

  • Call RFC from Excel

    I have created rfc function, and it works fine in SAP, but when I try to call this function from Excel I get '0.00000', data type is correct.
    VBA code:
        Set F2 = functionCtrl.Add("ZFUNC")
        F2.exports("PARAM1") = "123"
        F2.exports("PARAM2") = "321"
        F2.Call
        MsgBox F2.Imports("EXP1").Value
    Any suggestions?

    it's is ok now

  • ORA-12154 error when trying to connect to Oracle 11g DB from Excel 2010

    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?

    user10832104 wrote:
    All,
    I am trying to set up Excel 2010 64-bit to connect to an Oracle 11g database, but am having some trouble due to an "ORA-12154 could not resolve the connect identifier specified" error. I am able to TNSping the SID name, as well as connect to SQLplus. The TNS entry works, and the Oracle Home is in the right spot. I am even able to put the full connection string in the "Data Source" field when creating a data link in Excel and have it connect to the DB. But I would like to be able to create one that used the SID rather than the full connection string, as other users will have to use this. The developer behind the Excel solution created a number of .odc files to connect to various databases, so this gives extra weight behind figuring out how to connect via a SID rather than a full connection string. Any suggestions?
    If you are able to connect with sqlplus, then this really becomes a question of how to define a data connection in Excel.
    But after quickly googling ..
    In excel ...
    "Data" tab
    "from other sources"
    "from data connection wizard"
    select ODBC DSN
    On data link properties, select the "connection" tab
    select "Use Data Source Name" and hit the drop-down
    select a dsn that you had previously set up to point to the oracle database.
    Anyway, that looks like how it is supposed to be done.  I'm getting a dll initialization error.  Probably due to the fact I have both 32-bit and 64-bit oracle clients, and windows never handles that very gracefully.  But then Windows never graceffully handles anything that isn't MicroSoft.   To paraphrase Forest Gump, "My momma always said Windows was like a box of chocolates.  You never know what you're going to get."
    In any event, the error you report means it was actually tying to look it up in tnsnames, but what you supplied wasn't found there.  That can also be a big issue when dealing with MS products, because they don't use the same terminology, so lead people into entering something other than what Oracle expects.  Are you referencing an ODBC DSN?  If so, have you tested that apart from Excel?

  • How to import more than 2k items from Excel(2010) to SharePoint 2010 List?

    Hi,
    I am getting error while importing more than 2k items from Excel to SharePoint List.
    Need solution!!

    Hi.
    Try to use the Import Spreadsheet list template to import your data.
    http://www.dummies.com/how-to/content/import-a-spreadsheet-as-a-list-in-sharepoint-2010.html
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

  • DDE - From EXCEL to FORMS

    Hi!, I have used (DDE PACKAGE) to get data from EXCEL SHEETS into ORACLE FORMS, and it worked properly , my question is if there is a way or idea (Other than using TIMERS) to have a link between the - Very frequently changed EXCEL cells - and ORACLE FORMS that would keep intouch with the most recent updated EXCEL cells.
    Please note that I could solve the problem using timers but that was against the overall performance.
    Thanks,
    Firas AlKhatib

    Hi Firas AlKhatib
    Pls Can U send me the form which transfers data from excel into forms?
    I'll be gratefull to u...
    Prashanth Deshmukh

  • Excel 2013: Lost VBA Code From Excel 2010

    Just upgraded from Office 2010 to Office 2013.
    Tried to open several of my Excel spreadsheets created in 2010 with Excel 2013. I have spreadsheets that have VBA to perform several functions and routines.
    None of the .xlsm spreadsheets from 2010 work in 2013. I get the following messages:
    "The Visual Basic for Applications (VBA) macros in this workbook are corrupted and have been deleted. The macro corruption most likely exists in the current file. To recover the macros, open a backup copy of this file if you have one."
    OR ...
    "We found a problem with some content in '*******.xlsm'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes."
    Clicking Yes does not help. It removes or tries to fix the issue. Under the developer tab, the "Visual Basic" and "Macros" button is disabled.
    I tried 3 of my different workbooks. They all get the same error. I went back to an Office 2010 installation and all the workbooks open file - without error, and the code executes.
    Advice?

    I'm getting the same problem, but with Excel 2010.
    I've created a workbook with macros in Excel 2010 and couldn't run it in two computers with office 2010. The same problem as above occurs:
    "The Visual Basic for Applications (VBA) macros in this workbook are corrupted and have been deleted. The macro corruption
    most likely exists in the current file. To recover the macros, open a backup copy of this file if you have one."
    This problem happened with other 2 workbooks with macro. It's curious too that another workbook with macro created by
    me is working on these two computers without errors. And, of course, all of the workbooks mentioned works well in the other computers. This problem started when I downgrade the office os this two computers from 2013 to 2010.
    None of the solutions proposed above has worked.
    Any ideas?
    Thanks in advance!

  • Call Transaction from Excel VBA macro and download ALV list object results

    I have a situation that must be very common u2013 but I canu2019t find any clear information on how to get it done! 
    We frequently run SAP transactions, download the results (orders or inventory) into Excel, do some calculations and create a spreadsheet report. 
    I would like to automate this process using Excel VBA so that a macro will perform these steps:
    1. Run our custom SAP report "YSD033" that summarizes orders using the previous day as the [From Date] parameter.  (The user already has an active ECC 6 R3 session running.)   If possible, can the TC be run using a specific variant "G111BIZ" ?
    2. Download the list object that appears in an ALV grid as a table to an empty spreadsheet in the active workbook (export XXL list object)
    3. Save the resulting workbook and close Excel.
    Should the solution use u201Ccall transactionu201D or a GuiXT script?
    Any help would be much appreciated, and some sample VBA code would be great!
    Thanks.
    Glenn

    Good suggestion, but
    I get "permission denied" for   SapGuiAuto.GetScriptingEngine
    I also tried the method below, but received this RFC error message:
    User PPPPPPP  has no RFC authorization for function group SYST.
    Sub LoginCheck()
    If login = False Then
        ' Setting the necessary variables for R/3 connection
        Set objBAPICortrol = CreateObject("SAP.Functions")
        Set objConnection = objBAPICortrol.Connection
        ' Establish a connection
    If objConnection.Logon(0, False) Then
        login = True
        MsgBox "Connection Established"
        CommandButton1.Caption = "Disconnect"
    End If
    Else
        CommandButton1.Caption = "Connect 2 SAP"
        login = False
        objConnection.Logoff
        Set objConnection = Nothing
        Set objBAPICortrol = Nothing
    End If
    End Sub
    I was told that these kinds of authority open up too big of a window that can't be monitored adequately...
    I'm considering an approach like what is below if I can't convince security to grant me permissions...
        Application.Wait Now + TimeValue("00:00:01")
        SendKeys EnterKey, False
    Since blocked RFC security settings are preventing the solution from being installed, I am markgin this question as answered. 
    I will post different questions about 1. how to convince the security team that it will be safe to allow the use of RFC calls, and /or 2. how use some windows-level scripting code to run the SAP jobs.
    Thanks.
    Edited by: GlennWebster on Mar 1, 2010 4:34 PM

  • Call transaction from excel

    Dear all,
    i want to call an own created function module from ms excel with one importing parameter. my own create function module call another sap-transaction with this i-parameter and skip first screen. I know how to call an remote-enabled module, but i dont know how to call an sap-function-modul to show a dynpro.
    Is there any chance to do this. i tried to do this with an shortcut (.sap), but i dont know how to export a parameter.
    maybe its possible with an sap-connection-object?
    Best regards
    Andreas

    Good suggestion, but
    I get "permission denied" for   SapGuiAuto.GetScriptingEngine
    I also tried the method below, but received this RFC error message:
    User PPPPPPP  has no RFC authorization for function group SYST.
    Sub LoginCheck()
    If login = False Then
        ' Setting the necessary variables for R/3 connection
        Set objBAPICortrol = CreateObject("SAP.Functions")
        Set objConnection = objBAPICortrol.Connection
        ' Establish a connection
    If objConnection.Logon(0, False) Then
        login = True
        MsgBox "Connection Established"
        CommandButton1.Caption = "Disconnect"
    End If
    Else
        CommandButton1.Caption = "Connect 2 SAP"
        login = False
        objConnection.Logoff
        Set objConnection = Nothing
        Set objBAPICortrol = Nothing
    End If
    End Sub
    I was told that these kinds of authority open up too big of a window that can't be monitored adequately...
    I'm considering an approach like what is below if I can't convince security to grant me permissions...
        Application.Wait Now + TimeValue("00:00:01")
        SendKeys EnterKey, False
    Since blocked RFC security settings are preventing the solution from being installed, I am markgin this question as answered. 
    I will post different questions about 1. how to convince the security team that it will be safe to allow the use of RFC calls, and /or 2. how use some windows-level scripting code to run the SAP jobs.
    Thanks.
    Edited by: GlennWebster on Mar 1, 2010 4:34 PM

  • Call transfer from Lync 2010 attendant failing

    Hello,
    We are having an intermittent fault with a customer whereby calls into the Reception (Response Group, Attendant routing, Lync 2010 Attendant consoles) connect fine, and the first leg of the consultative transfer (to the internal extension) works fine, however
    when the attendant tries to put the call through it pauses then bounces back with an option to retrieve. The call can be retrieved, she tries again and it goes through fine. Due to the high volume of calls this is becoming a massive issue which may result
    in us having to remove Lync EV and install a traditional PBX, so any help would be appreciated. Here's the topology:
    Lync 2013 Standard Edition
    Audiocodes Mediant 1000 with SIP and ISDN30 PSTN lines
    Aastra 6725ip Handsets
    Lync 2010 Attendant Consoles
    Here's a list of what's been tried currently (in no particular order):
    Disabling media Bypass
    Removing Refer to Gateway
    Removing Centralized Media Processing
    Upgrading Firmware of the Audiocodes
    Upgrading the Aastra handset Lync PE to latest
    Patching Lync 2013 Windows Client
    Patching Lync 2010 Attendant Console (July 2013)
    Rebuilding on Physical server as instead of Virtual
    We have tried to capture the OCS Util logs from the FE but cannot see anything. In the monitoring and archiving reports I see this from the server:
    52095; reason="Media session terminated on internal client error"
    And this from the client:
    52095; reason="Media session terminated on internal client error"; OriginalPresenceState="0"; CurrentPresenceState="0"; MeInsideUser="Yes"; ConversationInitiatedBy="0"; SourceNetwork="0"; RemotePartyCanDoIM="No"
     Additional diagnostic information 
      Seq # Diagnostic ID Source Application Diagnostic Header 
      1 13004 jbl-lync13se01.JBL.local InboundRouting 13004; reason="Request was proxied to one or more registered endpoints"; source="LYNC13SE01.***.LOCAL"; Count="1"; appName="InboundRouting" 
      2 13005 jbl-lync13se01.JBL.local InboundRouting 13005; reason="Request was proxied to one or more additional targets"; source="LYNC13SE01.***.LOCAL"; appName="InboundRouting" 
    http://lync2010tips.blogspot.com - [email protected] - If this post has been useful please click the green arrow to the left or click 'Propose as answer'

    I didn’t quite understand your issue. Please try to elaborate a little more.
    Did you see the issue with Lync full client?
    Check if you can find any event in Lync Server Event Log on Lync Front End Server.
    Check you have enough RAM on Lync Front End Server.
    Lisa Zheng
    TechNet Community Support

  • Hyperlinks from Excel 2010 to external programm

    Hello!
    I have Microsoft Office 2010.
    I am interested in addition hyperlinks to pivot table in Excel, which can mouve to the external web application (Global Specification System - the system of documentation management).
    1. How can I add hyperlinks to pivot table?
    2. When I add hyperlink to ordinary Excel table (to the certain document), the hyperlink mouves me not to the certain document, but to the start page.
    Please let me know if you have any ideas how to realize this.

    We cannot add hyperlinks to pivot Table directly, but we can use some VBA code to create fake hyperlinks in a pivot table,refer to the link below to learn how to get it work:
    http://www.pivot-table.com/2013/11/06/create-fake-hyperlinks-in-excel-pivot-table/
    On your second question, if your hyperlink works fine in browser, please see :
    http://social.technet.microsoft.com/Forums/en-US/512fd9c4-1880-4db7-9959-97510bdd91d1/hyperlink-question?forum=excel
    Please let me know if I misunderstood you.

Maybe you are looking for

  • Servlet calls to Oracle Report Server

    I have an app server (oracle 9ias) which will be available to the public. However, I also have an oracle report server that produces pdf reports from an rdf template but the server will not be available to the public. How can I use JSP,java servlets

  • My B+Tree can compile but have runtime error ... i can't tink why ...

    Sorry to bother anyone ... i have spent almost 3 weeks trying to debug the problem... My B+ Tree can compile but can't run as it throw invalid Null pointer Exception .. I suspected the error is in the split (int order ) method in the BTreeNode class

  • Sound problems (load_state:1608: No soundcards found)

    Hey there! I am having troubles with my sound devices. It was running very well until yesterday when I did pacman -Syu. Unfortunatelly I can't remember which packages have been upgrade exactly... :-/ The first hint of a problem is that the alsa daemo

  • Review Quiz Not Working

    I created an assessment and I've set the quiz preferences to allow the user to review it. When I preview the project I get the screen with the results and a button that says Review Quiz. When I click that button it just replays the quiz again as if I

  • Problems with the installation Oracle 8i Database

    Hello, I need help with the installation of Oracle 8i. i got the free version of Oracle 8i in Internet, but when i start the installation i clicked in the autorun.exe but this aplication don4t start. Any one can help me, Thanks by your time.