Getting error 462 - The remote server machine does not exist or is unavailable

I have several modules that read and write data to and from Excel 2010 worksheets. I am noticing that the Excel process does not end aven though Excel is not running on my PC. It is like an orphan process. If I try running the Access module again I get the
message "error 462 - The remote server machine does not exist or is unavailable". Here is the code I am running. When I click the Debug button on the message box the line "rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row"
is highlighted.
Option Compare Database
Option Explicit
Function ImportImportanceScores()
Dim RecSet As DAO.Recordset
Dim objXLAppln As Excel.Application
Set objXLAppln = New Excel.Application
Dim objWBook As Excel.Workbook
Dim rowNum As Variant
Dim i As Integer
Dim j As Integer
Dim StrPathFile As String, strFile As String, strPath As String
Dim strBrowseMsg As String, strInitialDirectory As String, strFilter As String
'show dialogue box
strBrowseMsg = "Select the EXCEL file:"
'set directory to load files from
strInitialDirectory = "C:\Bridge_CIP_Part-A_B\"
'run strFilter function
strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.xlsx)", "*.xlsx")
StrPathFile = ahtCommonFileOpenSave(InitialDir:=strInitialDirectory, _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:=strBrowseMsg, _
Flags:=ahtOFN_HIDEREADONLY)
If StrPathFile = "" Then
MsgBox "No file was selected.", vbOK, "No Selection"
Exit Function
End If
'Set Excel application object. Critical for macro to run properly. Do not change.
'Open workbook and worksheet to load data.
With objXLAppln
Set objWBook = objXLAppln.Workbooks.Open(StrPathFile)
objXLAppln.Visible = True
End With
Set RecSet = CurrentDb.OpenRecordset("Importance_Scores")
'Copy data from Excel cells to Access fields
objXLAppln.Sheets("Importance_Scores").Select
rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
objXLAppln.Range("A6").Select
'Add records to table from Excel
With RecSet
For i = 0 To rowNum - 6
RecSet.AddNew
RecSet.Fields("CIP_ID").value = objXLAppln.ActiveCell.Offset(i, 0).value
RecSet.Fields("Target_Timeframe_for_Construction").value = objXLAppln.ActiveCell.Offset(i, 2).value
RecSet.Fields("ImportanceFactor_TI-1").value = objXLAppln.ActiveCell.Offset(i, 21).value
RecSet.Fields("ImportanceFactor_TI-2").value = objXLAppln.ActiveCell.Offset(i, 22).value
RecSet.Fields("ImportanceFactor_TI-3").value = objXLAppln.ActiveCell.Offset(i, 23).value
RecSet.Fields("ImportanceFactor_TI-4").value = objXLAppln.ActiveCell.Offset(i, 24).value
RecSet.Fields("ProjectRank").value = objXLAppln.ActiveCell.Offset(i, 33).value
RecSet.Update
Next i
End With
'Close everything
RecSet.Close
objWBook.Close SaveChanges:=False
objXLAppln.Quit
Set RecSet = Nothing
Set objWBook = Nothing
Set objXLAppln = Nothing
End Function

In the line
    rowNum = objXLAppln.Range("A" & Rows.Count).End(xlUp).Row
Rows does not refer to objXLAppln or to objWBook. Change it to
    rowNum = objXLAppln.Range("A" & objWBook.Sheets("Importance_Scores").Rows.Count).End(xlUp).Row
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • Error TF10175 The FMS team project does not exist

    We are using TFS and Visual Studio 2013. TFS was working fine for me. However we have to do some Java development and also wanted that code in source control in the project.  I was the lucky one (or not) volunteered to head this up.  I installed
    Eclipse and the TFS plugin for Eclipse now I am unable to use Visual Studio 2013 and the Source Control explorer to open other .Net based pieces to the solution without getting the following error:
    Error
    TF10175: The FMS team project does not exist.
    This only happens for me and since I installed the Eclipse TFS Plugin.  I also get the error when I try to get the latest code.  Is there an issue in using the TFS plugin for Eclipse and Visual Studios?
    R. K. Walters

    Hi Walters,  
    Thanks for your post.
    As you’re using TFS Eclipse, I moved this post to TFS Eclipse and Cross Platform forum for the better response.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • In MB1C im getting error-"Check table T004F: entry  G006  does not exist"

    DEAR SIR,
    WHILE DOING MB1C IN MOVEMENT TYPE 561 I M GETTING THI ERROR -Check table T004F: entry  G006  does not exist.
    PLZ HELP ME HOW TO SOLVE THIS PROBLEM.
    THXS AND REGARDS,
    DEBESH TRIPATHY

    Check these threads
    [Check table T004f: Entry G006 Does not exist |Check table T004f: Entry G006 Does not exist]
    [Posting Material    |Re: Posting Material]
    [Error in MBIC|Error in MBIC]
    thanks
    G. Lakshmipathi

  • While doing MIRO, i am getting error:-Tax code V0 country IN does not exist

    hi frds,
    while doing miro. i am getting this error:-
    pls correct me
    Tax code V0 country IN does not exist in procedure TAXINN
    Message no. FF713
    Diagnosis
    You entered a tax code which is not defined for the country of the company code to be posted to in the tax calculation procedure.
    System Response
    Procedure
    Check and, if necessary, correct the entry.
    Procedure for System Administration
    If it is not an input error, check and possibly change the system settings.
    To do this, choose Maintain entries (F5).
    Check whether the company code is assigned to the correct country and whether the correct tax calculation procedure has been entered for the company code country.
    Create a new tax code if necessary.
    Caution:
    Since it is possible that the tables in question are being updated at a different time on another computer, it can take a certain amount of time for the tax code to be on all local machines in client server architectures after saving the new code.
    regards,
    william

    hi
    go to ftxp choose tax code v0
    here in first input field give 00
    then select that field and click on gl acct tab
    here mention a gl or go to ob40 and mention gl for the acct key of that field
    try finding
    Tax code country IN does not exist in procedure TAXINN
    on SDN u will get many threads
    Tax code XX country IN does not exist in procedure TAXINN (MIRO Error)
    conclusion is u must get acct for at least one condition in the tax code
    regards
    kunal

  • The specified domain either does not exist or could not be contacted when logging in through RDP. Server 2012/SBS 2007

    I have a server 2012 machine running RDP and a PDC running SBS 2007. Every once a while all my users get an error saying "The specified domain either does not exist or could not be contacted". After waiting ~5-10 minutes the issue resolves itself.
    I believe it has something to do with the syncing between the two but am not 100% sure. Anyone know a fix or what I should look at? 
    Jerry T

    Hi Jerry,
    Thank you for posting in Windows Server Forum.
    After referring to your error, it seems to have DNS issue in your case which can’t locate the DC. Please check the setting related to DNS issue as following. (Below quoted from
    this thread)
    If this is the case, I would recommend proceeding like that:
    1. Make sure that each DC has only one IP address in use and ONLY one NIC card enabled (Other NICs should be disabled)
    2. Make sure that public DNS servers are configured as DNS forwarders and not in IP settings of DCs
    3. Choose a healthy DC / DNS server and make each DC point to it as primary DNS server
    4. Make each DC / DNS server point to its private IP address as secondary DNS server
    5. Make sure that needed ports for AD replication are opened: http://technet.microsoft.com/en-us/library/bb727063.aspx
    6. Check your DNS zones and remove manually all obsolete / unused DNS records for DCs
    Once done, run ipconfig /registerdns and restart netlogon on each DC you have.
    On the client computer, run ipconfig /flushdns and check again.
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • Erorr  " The Web template "0ANALYZER" does not exist in the master system "

    Hi
    i am trying to run query from Query designer and execute in Web .i am trying to execute this in query designer. i am getting below error.
    "The Web template "0ANALYZER" does not exist in the master system "
    i activated all templates but not able to execute any report in web
    i am able to execute same report in webaplication but not thru query desinger... do i need to setup anything.?
    please do help me

    For clarification:
    If following happens:
    > you are launching the query with URL like:
    http://<server>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=<your query name>
    > then you get the error message "The Web template "0ANALYZER" does not exist in the master system"
    --> then you should check the settings for default templates in SPRO. Please mention that the default Web Template for query execution (BEx Web Analyzer) is called 0ANALYSIS_PATTERN.
    --> also check the 0ANALYZER Web Template in SE38 / Program: RS_TEMPLATE_MAINTAIN_70 -> then check if the template is active.
    When you problem is other nature you have to describe it in detail.
    Regards, Karol

  • CF8 Verity "The collection you specified does not exist or is not registered with the ColdFusion Search Service."

    I'm running ColdFusion 8 Enterprise on linux. I'm able to
    create collections and index them through cfadmin as well as in cfm
    application pages, but when trying to search I get the error
    &quot;The collection you specified does not exist or is not
    registered with the ColdFusion Search Service.&quot;
    I'm using the collection name in cfsearch and not the full
    path.

    Would I have been better off posting this in the General
    Discussion section? Could the moderators move it if so,
    please?

  • Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of g

    Hi i am getting an error like this while installing Live Cycle Server " The file merge_modules\lc11_common_iam_zip does not exist This file is required sucessfullly run the  Live Cycle Installer.Can any one help me on resolving this issue it would be of great help..thanks .

    I think in your situation it would be worth trying the things listed under the event. It does have to do with FRS and it's easy to do. I've used it to fix journal errors after a server unexpectedly restarts and sysvol stops replicating.  I
    could see where it could fix your issue, and if it doesn't, you're out 5 minutes. :)
    The listed registry key does not exist
    Expand HKEY_LOCAL_MACHINE. 
    Click down the key path: 
       "System\CurrentControlSet\Services\NtFrs\Parameters" 
    Double click on the value name 
       "Enable Journal Wrap Automatic Restore" 
     

  • The version of OLE on the client and server machines does not match. (Exception from HRESULT: 0x80010110)

    Hi,
    I have installed FIM CM Client on one machine and FIM CM update service on another machine. Both are windows server 2008 r2 machines.
    When i try to enroll a permanent smart card for a user, its shows me the following error:-
    The version of OLE on the client and server machines does not match. (Exception from HRESULT: 0x80010110)
    Also there is no logging done for the particular event.
    I am able to change my smart card pin and view my smart card info. through the FIM CM client. 
    Is there a compatibility issue of FIM CM 2010 with Windows server 2008 r2?
    Thanks

    Hi,
    Sorry for the delay in reply.
    Please try the following steps first:
    Open Powershell as Administrator
    Go to Start--> Run and type wbemtest.exe.
    •Click Connect. 
    •In the namespace text box type "root" (without quotes).
    •Click Connect.
    •Click Enum Instances…
    •In the Class Info dialog box enter Superclass Name as "__ProviderHostQuotaConfiguration" (without quotes) and press OK. Note: the Superclass name includes a double underscore at the front.
    •In the Query Result window, double-click "__ProviderHostQuotaConfiguration=@"
    •In the Object Editor window, double-click HandlesPerHost.
    •In the Value dialog, type in 8192
    •Click Save Property.
    •Click Save Object.
    Under properties find the property "MemoryPerHost" or any other ones you need to modify  and double click it
    Change the value from 512 MB which is 536870912 to 1GB which is 1073741824
    Click Save Property
    Click Save Object.
    •Close Wbemtest.
    •Restart the computer.
    And if all nodes are Windows server 2012, install the following update rollup as well:
    Windows RT, Windows 8, and Windows Server 2012 update rollup: August 2013
    http://support.microsoft.com/KB/2862768
    If you have any feedback on our support, please send to [email protected]

  • System keeps looking for a 'server' that does not exist. Is says the old name of my Airport Extreme. Clicking it away (4x) it gets through.

    System keeps looking for a 'server' that does not exist. Is says the old name of my Airport Extreme. Clicking it away (4x) finally  gets through.

    Other weirdness to report: my neighbor upstairs appears to have a Linksys router network on channel 6. My AEBS is on channel 1 so there shouldn't be interference... but according to iStumbler sometimes the signal leaps to 64000 (keep in mind my own Airport never tops 60)! Is that potentially the problem?
    Might it be possible that your neighbor just acquired a 802.11n (pre-N) wireless router recently?
    802.11n effectively increases capacity by doubling the number of Wi-Fi radios and increasing the number of antennas used to push signals out of those radios. 802.11n splits a data frame into multiple pieces. It then transmits these pieces in parallel using multiple radios that are attached to multiple antennas. These antennas blast out signals from virtually the same vantage point – scattering the signals everywhere.
    You may find the following ZDNet article interesting: http://blogs.zdnet.com/Ou/?p=247
    Even if he did not, and you are on good terms, you might want to ask if he can temporarily turn off his wireless, or, at least, reduce the signal strength to see if that will help in your situation.

  • HT1338 Im trying to watch a film downloaded from Bit Lord, I'm getting 'Error Dolby AC3 Audio". Player does not recognize the audio in this video, how do I fix this?

    Im trying to watch a film downloaded from Bit Lord, I'm getting 'Error Dolby AC3 Audio". Player does not recognize the audio in this video, how do I fix this?

    Download VLC and try playing the video...
    http://www.videolan.org

  • When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    first, you just asked me to use MS file Explorer to see what the properties were.,..and to ask what happened. Yes - that's on my hard drive. The problem I have is opening word files in a DB that is web enabled.....I've used Firefox browser for that, and everything else , for years...... When I look at the Tools, and options on FireFox., as your support page noted.....NOTHING is listed in the Applications tab....hence my note asking for help. The file I need to open is a Word file out on a web enabled DB. It's not on my hard drive - I have to problems opening docs there - but for that, I don't use Firefox

  • MBAM - SCCM 2012 Reports - Error: the 'MBAM Policy' view does not exist

    Hi
    I have installed MBAM with SCCM 2012 integration. A single server install with SQL server 2012. Mostly it has gone smoothly and laptops are being encrypted and pins stored and recoverable. The problem I have is reports are not showing. I get the following
    error message.
    "Error: the 'MBAM Policy' view does not exist"
    Any ideas why this is? I get the same error message with all 4 reports.

    Hi Slycy,
    There is another thread that seems to be a similar issue
    here that may help you. The last post in particular has a number of steps that you can use to speed up creation of the views:
    Just for future reference, there are quite a few things that have to happen before the view is created. This is merely how CM works.
    Make MBAM MOF changes
    Select TPM spec version in hardware inventory
    Install MBAM CM Integration feature
    Perform a machine policy refresh cycle on a client to get the MOF changes that need to be inventoried
    Perform hardware inventory
    Update MBAM Supported Computers collection membership.  The machine should appear if it meets the criteria
    Run another machine policy refresh on the client so that the Configuration Baseline will come down
    Make sure that the MBAM agent has woken up once
    Evaluate the Configuration Baseline
    The MBAM views should be created now.
    You don't have to do this for every machine, but this is the process to speed it up.  If you let CM do it, it could take over a week before the view is created the first time, depending on when Hardware inventory runs, etc.
    Hope this helps,
    David

  • RDS Gateway + Smart Card Error [ The specified user name does not exist.]

    I have the following Windows Server 2008 R2 servers:
    addsdc.contoso.com, AD DS Domain Controller for contoso.com
    adcsca.contoso.com, AD CS Enterprise CA, CDPs/AIAs published externally.
    fileserver.contoso.com, RDS Session Host for Administration enabled
    rdsgateway.contoso.com, RDS Gateway enabled
    tmgserver.contoso.com, 'Publishing' rdsgateway.contoso.com but with pass-through authentication
    And the following Windows 7 PCs:
    internalclient.contoso.com
    externalclient.fabrikam.com
    There's no trust between the domains, the external client is completely separate on the internet but the CA certificate for contoso.com has been installed in the trusted Root CA store. All servers have certificates for secure RDP.
    I enrolled for a custom 'Smart Card Authentication' certificate with Client Authentication and Smart Card Logon EKUs from the CA, stored on my new Gemalto smart card using the Microsoft Base Smart Card CSP.
    From internalclient.contoso.com, I can RDP to fileserver.contoso.com
    using the smart card just fine with no certificate errors.
    From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
    via rdsgateway.contoso.com using a username and password just fine with no certificate errors.
    From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
    via rdsgateway.contoso.com using the smart card to authenticate to the gateway, and a username and password to authenticate to the end server, just fine.
    BUT from when using a smart card to authenticate to the end server via the gateway, it fails with:
         The specified user name does not exist. Verify the username and try logging in again. If the problem continues, contact your system administrator or technical support. 
    When I move the client into the internal network and try the connection again (still via the RDS Gateway), it works fine - the only thing I can think of is being outside the network and not being able to contact the AD DS DC for Kerberos is causing the issue
    - but I'm pretty sure this is a supported scenario?
    The smart card works fine internally, the subject of the certificate is the user's common name (John Smith) and the only SAN is
    [email protected] which matches the UPN of the user account as it was auto-enrolled.
    Does anyone have any ideas?

    I had a similar issue where I am using a smart card through a Remote Desktop Gateway. I had to disable Network Level Authentication (NLA) on the destination Remote Desktop Server. If anyone has another way around this, I'd appreciate hearing it. I'd prefer
    to use NLA.

  • C# error when connecting to ldap server that does not exist

    When using Novell.Directory.Ldap.dll and making a connect to an ldap
    server which does not exists i'm getting the following error:
    Connection.freeWriteSemaphore(-2): semaphore not owned by any thread
    Im using this to connect: conn.Connect(ldapHost, ldapPort);
    This error is not catched by LdapException. Can anyone tell me if this is
    a bug or do I have to do something different.

    Hi. I'm using version 2.1.11 of the NDK for CSharp. I'm getting this
    same error message:
    Code:
    Connection.freeWriteSemaphore(-2): semaphore not owned by any thread
    at Novell.Directory.Ldap.Connection.freeWriteSemaphor e(Int32 msgId)
    at Novell.Directory.Ldap.Connection.connect(String host, Int32 port, Int32 semaphoreId)
    at Novell.Directory.Ldap.LdapConnection.Connect(Strin g host, Int32 port)
    at TestLDAP.Program.Main(String[] args) in D:\Documents and Settings\tjbuege\my documents\visual studio 2010\Projects\TestLDAP\TestLDAP\Program.cs:line 20
    This occurs when I try to bind to a server that does not exist. Here
    is my sample source code that generates that error:
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Novell.Directory.Ldap;
    namespace TestLDAP
    class Program
    static void Main(string[] args)
    LdapConnection conn = null;
    string host = "server.does.not.exist.com";
    int port = 389;
    try
    conn = new LdapConnection();
    conn.Connect(host, port);
    catch (Exception ex)
    Console.WriteLine(ex.Message);
    Console.WriteLine(ex.StackTrace);
    if (conn != null)
    conn.Disconnect();
    Is there a fix for this? It makes this library useless for me.
    Thanks,
    Tim
    tjbuege
    tjbuege's Profile: http://forums.novell.com/member.php?userid=108957
    View this thread: http://forums.novell.com/showthread.php?t=365082

Maybe you are looking for

  • Apple support helpline not working

    The apple support helpline number provided on apple.com for India ( +91-18004250744) does not exist. I need the working number immediately.

  • Send pdf file in an email by c# emailer, also sending a completed pdf file to server

    I am trying to achieve two things: First I want to have a submit button on my pdf that sends the completed pdf to a asp.net C# file that sends the completed pdf file, as an attachment to a hard coded email address by a mailer, which i have already cr

  • Problem setting up wireless

    l set up wireless with a router supplied by my ISP which worked fine until l put the computer to sleep. When woken from sleep there was no internet connection. If l shut down the computer and restart it, the internet connection is still there, so it'

  • Material Master Extension to all the plants of same type

    Hi In the given scenario, we have  almost 200 plants where same materials are required , now when we create material master using Tcode MM01 we want to extend this material master to all the plants of same type in one go .Is it possible , if yes , ho

  • ContentDB 10.1.3.2.0 of WebCenter Suite and S2S Trusted Application error

    Hi , Any one have tryed creating trusted s2s application entry in OID, using steps provided under contentdb devkit (cdb\doc\authentication.html) ? When I run ./runs2s.sh Permission denied even though I have updated jazn-data.xml file Then I have try