XMLHTTP: System Cannot Locate The Resource Specified
Aug 5, 2009
i am getting the error run-time error '-2146697211 *800c0005)'': the system cannot locate the resource specified
when running the following:
my guess is because sometimes the internet connection doesnt always work, or the page loads too slow, but 'on error resume next' doesnt work because the line takes awhile to execute and then excel turns off
i believe i saw somewhere here (mrexcel) how to give specific commands a limited time to run. i dont rememeber how to do this though, or any other workaround ...
I have just signed up to the forums as I am having a very specific problem. I have looked on google and used the search feature (on several forums!) and found very limited information that is useful to me. I am having trouble with a very simple few lines of code in a macro. The code looks like this:
Function startmarketIDs() Dim targeturl, writerow, readrow, textmass, xmlHTTP targeturl = "http://lite.betfair.com/ Events.do?s=00010913z" Set xmlHTTP = CreateObject("Microsoft.xmlHTTP") xmlHTTP.Open "GET", targeturl, False xmlHTTP.send MsgBox xmlHTTP.StatusText textmass = xmlHTTP.responsetext MsgBox textmass End Function
My problem occurs at the line "textmass = xmlHTTP.responsetext". The responsetext command is obviously causing problems because if I remove it, the code executes without error and the "xmlHTTP.statustext" says "OK". With the responsetext command left in, the code generates the following error: Run-time error '-1072896658 (c00ce56e)': System Error: -1072896658. If I change the targeturl to www.betfair.com, the code executes fine and I get a message box (as desired) with the source code of the website displayed. Without meaning to sound like Im answering my own question (!!), perhaps there is something about the url or the way in which I am using the xmlHTTP object that is causing the issue, I wondered if someone would mind inspecting my code and perhaps pointing me in the right direction?
I am trying to automate data downloads into Excel from a webpage, similar to webquery but slightly more complex. In the browser I can only get the data I want if I select a checkbox. As soon as the checkbox is clicked, the webpage reloads with the right data, and this is what I am trying to import into Excel via XMLHTTP. The html/javascript code related to the checkbox on the website is:
The ... contain some html stuff and further controls like radiobuttons. Anyway, I know how to load the website into Excel VBA as is before the checkbox is selected. Now how do I implement this PUT/submit.form() thing? the VBA code so far is:
Set oHttp = CreateObject("MSXML2.XMLHTTP") oHttp.Open "GET", "http://...?option1=...&option2=...", False oHttp.send a = oHttp.responseText 'a contains source code of website
I have a standard module in which I gather information from a workbook, create an XML document, Post it, and collect the value I need from the response XML. Thing is I have to run through it maybe hundreds or thousands of times depending on the number of records I have. It takes ten years to finish the loop. I have read that it might be possible to post them concurrently using a class module and an event handler, but I have not worked with Class modules before. Compiling all the XML documents into memory is easy, posting them and getting my return values in a timely manner is the problem at hand.
In the past the Manpower Company has put out a yearly spreadsheet allowing an employer to keep track of employee time off. They are not making one this year. Looking at last years sheet, all the calculations are locked. Has anyone seen this sheet in the past and know how it works? You can put in something like v8 in a dated cell and excel subtracts 8 hours from a yearly vacation total. The v in front of the 8 stands for vacation and you can also put in a p for personal time etc..
I want to write a formula that will sum the hours in a table based on the name of a resource, a task name, and the month it was entered. So my table looks something like this:
Name Task Month Hours
Person 1 Meetings 201201 2
Person 2 Misc 201202 1.5
There are additional columns, and it has over 80,000 rows...
For example, I thought that the formula to sum the hours for Person 1 if the task is meetings and the month is january would be:
I am trying to create a resource capacity planning per project and I have some issues with some functions. Here is what I did :
1/ I have a workbook for each project with 4 sheets : "Project", "Pivot", "Project Identification", "Capacity"
2/ On the Project sheet I have the volume of man days for resources (rows, can be multiple according to the resource skill) per project phases (columns, always Gate 1 to 6).
3/ On the second sheet I have the pivot table of the first sheet which sum up the volume of man days for each resources per project phases.
4/ On the third sheet I have a project identification table with the columns Date, Week Number, Duration (Weeks), Phase (Gate 1 to Gate 6, so 6 rows). I required the user to enter the date of each Gate, the week number and duration are calculated.
5/ On the last sheet I have my capacity planning with:
- the number of columns is always 52 corresponding to a full year, but can start in the middle of the year, for example start week 30 to end week 29. - the first row is the weeks numbers, the first cell is the week number of the Gate 1 date, the following cells are the previous cell +1 ( fx=IF(B1>51;1;B1+1) ) - the second row is the phase we are in at that week ( fx=VLOOKUP(B1;'Project Identification'!$B$2:$D$8;3;TRUE) ) - the following rows are the man days for each resources (1 row per resource), this is only the volume of man days for the phase identified in the sheet "Project" divided per the number of weeks for this phase. ( fx=IF(Pivot!$A2="";"";IF(C$2="";"";HLOOKUP(B$2;Pivot!$B$1:$G$4;ROW()-1;FALSE)/VLOOKUP(B$1;'Project Identification'!$B$2:$C$8;2;TRUE))) )
This is working ok if the project execution is within a year (for example from week 20 to week 41). But if the project is over 2 years (for example from week 41 year n to week 12 year n+1) it does not work at year changing.
For example if I have Gate 3 on 19/08/2013, Gate 4 on 30/11/2013, Gate 5 on 29/01/2014 and Gate 6 on 12/02/2014 then on the "Capacity" sheet for week 34 I will have Gate 3 but on week 35 it will switch directly to Gate 6 up to week 52 and then at week 1 I will have "#N/A".
what i am trying to do is use concatenate in a vlookup to search for a resource number and date, then return another column in the array.
the formula looks like: =VLOOKUP(CONCATENATE(D7,$H$6),Roster_Allocation,7,FALSE) but only results in NA.
if i search for the resource number only, i get the correct result. also, the res# and date are concatenated in the table array. could this be related to the way excel is storing the dates (40241?) even though both concatenated fields look the same? i have also tried adding a new coumn which has the res# and dates concatenated as the lookup value but still all NA.
I have one workbook with data linked to another CSV file (It's about 40000rows). When I open the workbook, "THis workbook contains one or more links that cannot be updated." message appears and asks me to open csv file if I wanna to update (although I set full path for links in cells). I wonder if there's any way to update link without opening csv file? Or Excel can not update link without openning the resource file?
I have the following code for a sheet in my workbook that has 3 charts:
Private Sub Worksheet_Change(ByVal Target As Range) Application.Calculation = xlCalculationManual ActiveSheet.ChartObjects("RdteObs").Chart.SetSourceData ThisWorkbook.Names("GSumRdteObs").RefersToRange ActiveSheet.ChartObjects("RdteWip").Chart.SetSourceData ThisWorkbook.Names("GSumRdteWip").RefersToRange ActiveSheet.ChartObjects("RdteExp").Chart.SetSourceData ThisWorkbook.Names("GSumRdteExp").RefersToRange Application.Calculation = xlCalculationAutomatic End Sub
but whenever the sub runs, I get this error message: "Excel cannot complete this task with available resources. Choose less data or close other applications." Does anyone have an idea what's going on?
We have an excel worksheet with textfields, that are compiled (when a btn is clicked) and the results are assigned to a static range. (Meaning, the results always appears in the same cells)
Question is: How can i have the results appear in a different row each time, starting on row 14 ?
I have one column of data (numbers). Within this column, are the values for two different categories...which are separated by a blank row. And then a total for each product given one column over; like this:
Product1 123 Product1 456 Product1 789 1368
Product2 456 Product2 123 Product2 456 1035
Either product can increase/decrease in rows, so I am unable to set a static range. The only solution I got on my own was to use SUMIF (sum the column of values if it matches the name "Product1" or "Product2"). This is fine until someone misspells the product name or leaves it off completely; which is why I prefer to go off the actual values.
My 1st preference is to go off the totals. Basically, return the 1st value (ie 1368) in the column, and then in another cell, return the 2nd value in the column (ie 1035).
My 2nd preference would be to sum the individual values in the column until a blank cell is encountered, and then return that value. Then continue on until another blank cell is encountered, and return that value as well.
I know very little of vba, so I haven't taken that route, but I bet this is easily done as a UDF (although I would prefer not to do it that way).
I've got a formula that takes a value from the last numerical entry in a column. Is there a way to code this so that I don't have to enter the cell location of that number manually every time I append the sheet?
Finding a link and deleting it. When I open a specific excel file I am working on I get an update links error
Unable to open [URL].... Cannot locate the Internet server or proxy server.
- I have done a search for "[" throughout the whole workbook and found nothing neighter within functions nor values - I have looked at the Names and found nothing of the sort - I have looked for hyperlinks within 2-3 images and found nothing - I have looked through the VBA code
This does not happen when I open other excel files....
I'd like to use the INDEX & MATCH functions to look in a table (in 'misc') and find a value contained within a specific cell in Sheet 1 but I am getting a #REF error and I'm not sure why.The formula is as follows:
I know how to delete duplicates using the function under the data tab, but how can i locate them. For instance, a spreadsheet with a list of PO numbers, how can i do a search to see if it is showing the same PO number multiple times?
In the attached sample workbook, (Excel 2007 format), there are hundreds, maybe thousands, of drawing objects and rectangles. They are mostly located near the top of column AC. You can't see any of them, because they are empty, or formatted to have no line and no fill, ubt if you move the cursor around in that area, it will eventually give you the option to "select" one of the objects. They appear to be stacked on top of each other.
This bloats the worksheet terribly. I have managed to shave the size of the attached sample down to 100K, bu deleting about 200 of the objects, but if I save this balnk file as an Excel 2003 file, it is 1.3 Mb.
I have discovered how to show what objects are on the worksheet, by selecting "Find and Select" and choosing to show the "Selection Pane". This pane shows hundreds of blank objects in the sheet. When this pane is open, however, if I try to select and delete an object, Excel locks up on me.
I have the below formula that pastes data into the worksheet entered in the " " it works great but only when the workbook was last saved on that sheet, how can it locate that worksheet sheet even if the the workbook was last saved and another worksheet. if the workbook was saved on a different sheet name the vba doesn't finish
I am having a problem with locating a certain date. What I am trying to do is scan down a list of dates and have returned the row is is in. I have been using the MATCH function and it was fine except when there is no MATCH. In the case where there is no match I would like it to select the next cell.
I am currently using this =MATCH(Search!G5,Data!F1:F10005,0) where Search!G5 is the date I want to find Data!F1:F10005 is the set of dates.
I have a workbook that requires a multiple of 3 to be entered in a cell. If a quantity other than a multiple of 3 is entered, a Msgbox pops up and requires the quantity to be changed to such value.
I am looking for where this is handled. I found part of it in a Private Sub:
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub But I cannot locate where the other parts of the code is stored.... I would like to see how this is handled so I can incoporate this in my own worksheets.
This formula finds the last space from the right and returns the values less the last space and whatever is to the right- =TRIM(IF(LEFT(Y25,2)="~C",REPLACE(LEFT(Y25,FIND("`",SUBSTITUTE(Y25," ","`",LEN(Y25)-LEN(SUBSTITUTE(Y25," ",""))))),1,FIND(" ",Y25),""),RIGHT(Y25,LEN(Y25)-FIND(" ",Y25))))
Results of a item of a whole size: LAKAI KOSTON SLCT INDY SHOE BK
However- I forgot I had added a criteria to convert records that have a fractional value from decimal to a fractional value and an extra space shows up. I need to alter the above formula to handle this additional condition, returning the value w/ out the second space and the size 10 shown below.
Results of an item w/ a fractional size, ie. 10 1/2:
LAKAI KOSTON SLCT INDY SHOE BK 10
Linked to this post: new post started to help avoid confusion: but wanted to show prior material... http://www.mrexcel.com/board2/viewto...766e4507d1a402
I am trying to append about 15 files of CSVs. I have code that works on importing the data, placing it at the end of the previous data, but then it clears the previous data. Here is the code
Sub import_BCDV() Dim lastrow As String Selection.End(xlDown).Select Selection.End(xlUp).Select ' Range("A515").Select lr = FindLastrow1() lastrow = "A" & lr MsgBox lastrow Range(lastrow).Select ' "TEXT;J:QA ReportsQA ReportsWorkbenchBCVD 1-11-09 1-17-09.csv", _..........................
I have created a form that will be used my many people. The first person will enter their information and click a button to transfer their data to a second workbook, as well as send the workbook via email. At a later time, someone else will add more data to the emailed form and transfer this to the database in the second workbook. What I need is to be able to find the row in the second workbook containing the data transferred the first time and add the data that was put in later to the same row as the original.
take a value from an input box and use it locate a record?
On my "Menu" sheet, the user will click a button which opens the input box and asks them enter a record number (format = PCAR.yy.nnn.xxxx)
The records are stored on a "Log" sheet and the lookup value is located in column "F".
I found code on another post which I used to create the input box, but don't know how to take this input and use it to find the relevant record.
I have the following code, which I use to find the first empty row in which to add a new record. if there is an error (record not found) to return to the input box to reenter the number.
Sub GetPCAR() Dim Pcarnum Pcarnum = InputBox("Please enter the PCAR number") MsgBox ("Searching PCAR") & Pcarnum End Sub
Sub AddPCAR() Dim rNextCl As Range
Set rNextCl = Worksheets("PCAR Log").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) Worksheets("PCAR Log").Activate rNextCl.Select ActiveWindow.DisplayHeadings = False End Sub