![]() |
| ||
| need help.. VBA in access and excel.. greetings i am doing a database system in access and has certain function of creating and modifying an excel worksheet. i keep getting this "Run-time error '462' : Remote server machine doesn't exist or is unavailable" or sometimes "Run-time error '1004' : Method 'Range' of object '_Global' failed".. it points to this line Range(checker1).Selectwhen i click on one of my command button as well as ActiveWorkbook.Close Truein a different command button. here's the code for the function that is called when some1 clicks the command button Dim checker(5) As String OpenExcel function has the declarations for xlApp etc2.. the pointed error "Range(checker1).Select" exists in the functions "WaferSortAddProduct" and "AssemblyAddProduct", which i stored in a module, which btw, this function also exists in the same module... i use the range and select thing to modify the property of the cells, some merging, fonts, formula, borders and default values. i copy and modify it from excel recorded macros. weird thing is, it works on the first run, then on the second run it gives the run time error, which then it works again on the third run and fails on the fourth run.. it goes on and on in that sequence.. also i can't seem to end the excel process.. i tried using all the codes that i could get my hands on but none of them actually ends the process.. after each try i have to manually end the process in task manager.. xlApp.Quit i'm getting really frustrated over this part.. i'd really appreciate any form of help/feedback.. thanks in advance -osman- |
| ||
| Re: need help.. VBA in access and excel.. Hmn, I don't seem to get that error when I run your code on my box... I wasn't sure how your ABP-FET Reference.xls file looks, so I kind of guessed, and maybe that's the issue (probably, if it's a problem with a text range), but umn..... it seems to work for me....maybe you could attach both the .xls file and the .vbs file in a .zip file. |
| All times are GMT -4. The time now is 7:22 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC