Home > Time Error > Excel Run Time Error 1004 Unable To Read File

Excel Run Time Error 1004 Unable To Read File


Didn't realize that it related to my query! noticed the same thing about -535 and so I wonder why it recorded that. –datatoo Jun 1 '11 at 1:32 | show 1 more comment 2 Answers 2 active oldest votes Individual Describe Calls? Linked 0 run-time error 1004 unable to get countif property of the worksheet 1 Excel Issue with CountIf with visible cells only 0 error "Unable to get the Index property of http://evollux.net/time-error/excel-vba-run-time-error-1004-the-file-could-not-be-accessed.html

Now I have upgraded from Excel 2007 to 2010, I am getting the following error whilst running a Macro. I am really scratching my head about this one Any ideas? Using ozone as oxidizer The college in 'Electoral College' What's the right answer to "Check, Savings or Credit" for an overseas card in Australia? You may have to register before you can post: click the register link above to proceed.

Run Time Error 1004 Excel 2010

Yes, the error message is really misguiding. Try reading up on Dir function instead of using built in Excel file stuff. Does anyone have a similar experience of this sort of error occuring inconsistently and know what I could do to resolve it? I used Excel 2007 to test it.

Show Ignored Content As Seen On Welcome to Tech Support Guy! three-letter codes for countries Is a unary language regular iff its exponent is a linear function? Loading... Run Time Error 1004 Unable To Get The Vlookup Property Of The Worksheetfunction Class Error 1004 - unable to read file Discussion in 'Business Applications' started by Unusual, Jan 20, 2011.

The time now is 02:54 AM. Run Time Error 1004 Application Defined Or Object Defined Error The relevant code is: Workbooks.OpenText FileName:=myDir & "\" & strFilename, _ Origin:=-535, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _ xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, Semicolon:=False _ , Comma:=True, Space:=False, Other:=False, FieldInfo:=Array(Array(1, 2), _ Array(2, 2), Array(3, The negative order integer challenge, but it's Prime Time! Any help appreciated.

For example, I've had this problem when calling WorksheetFunction.Asin with an argument bigger than 1. Run Time Error 1004 Excel 2007 However, that is a good troubleshooting step anyways and so I'll do that and report back. Well let me know if you get any other ideas how to beat it back into shape and to start wanting to work again! Related 5Excel VBA Function runtime error 1004: Application-defined or object-defined error0Excel 2010 VBA on-start macro execution - Error0vba excel macro runtime error 10042Can't click on ActiveX control in Excel 2010 Standard2Application

Run Time Error 1004 Application Defined Or Object Defined Error

Short URL to this thread: https://techguy.org/975781 Log in with Facebook Log in with Twitter Log in with Google Your name or email address: Do you already have an account? It was a variable/path issue. Run Time Error 1004 Excel 2010 Thank you. –music2myear May 31 '11 at 20:11 1 not sure I know on this, but the relevant article says "If this argument is omitted, the method uses the current Run Time Error 1004 Excel 2013 Tech Support Guy is completely free -- paid for by advertisers and donations.

Stay logged in Sign up now! this content Do progress reports belong on stderr or stdout? Terms of Use | Privacy Policy | End User License Agreement Menu Computers Laptops Software Gadgets Infographics Mobile Apple HTC Samsung Windows Mobile Apps Social Media Tech News World How A similar macro on another spreadsheet works fine in 2010. Microsoft Visual Basic Runtime Error 1004 Excel 2013

I was able to get my code to run by putting "Option Base 1" in the Declarations (before the actual code) section of the particular Module in the Editer. In your case, I'd guess currentCell.Value is a non-numeric value or one not according to your region settings regarding numbers. Public Function GetDatesA(sWorkbookname As String, sSheetname As String, sCell As String) As Variant Dim vDateList() As Variant Dim currentCell As Range Dim n As Long Set currentCell = Workbooks(sWorkbookname).Worksheets(sSheetname).Range(sCell) n = weblink Instead of using a messagebox just before the line that crashes, I created a one second delay in the program which achieves the sames purpose.

Excel - Tips and Solutions for Excel Privacy Statement Terms of Service Top All times are GMT -4. Run Time Error 1004 Excel Macro I tested it many times and it seems to work every time. Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

Excel assumes "Option Base 0" which will add an extra row and column of empty cells.

Bernard20 replied Dec 21, 2016 at 1:29 AM Membership Profiles colinsp replied Dec 21, 2016 at 1:18 AM Buying a digital thermostat Drabdr replied Dec 21, 2016 at 1:08 AM pc asked 5 years ago viewed 5317 times active 5 years ago Blog Developers, webmasters, and ninjas: what's in a job title? This might not have anything to do with the problem, but why do you have parentheses, ie (), around the path and filename? Run Time Error 1004 Method Range Of Object _global Failed Powered by vBulletin Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc.

Thank you. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next dim all variables as required Not the answer you're looking for? check over here However, I'd also simply modified strFileName, prepending the myDir string to create the full file path.

Thanks Unusual, Jan 23, 2011 #8 Keebellah Hans Trusted Advisor Joined: Mar 27, 2008 Messages: 6,158 Sorry,I did some testing but cannot find a plausible reason. With Excel spreadsheet, it gets too handy to organize and calculate your statistical, financial and engineering data precisely, especially when dealing with bulk of information. Symptoms of Runtime Error 1004 All runtime errors frequently give the user particular symptoms indicating that there's a problem. What importance would Origin have on the import?

Browse other questions tagged excel-vba excel-2010 or ask your own question. Crack the lock code Which order to perform downsampling and filtering? Advertisement Unusual Thread Starter Joined: Jan 22, 2009 Messages: 92 Hi All I have an interesting problem that I would really appreciate assistance solving. This will cause the error to occur and isn't immediately obvious to see.

Is it possible to replace a file with a hard link to /dev/null? Where would I enter debug.print filenames(i)? Related 3Run time error 1004 for saving excel file (VBA required)0Excel VBA - Run-time error 10040Opening network file from excel vba code on MAC uses offline file1Run a .R file through To solve this problem, save first before you close your workbook periodically during the process of copying.

I'm just trying to figure out why it hickups on the line of code I uploaded here. Copyright © 2016 SpeedyPC.com All rights reserved.Powered by ParetoLogic Inc. might do what you need? Is it possible to replace a file with a hard link to /dev/null?

I gave that a go. Then, all you need to do is workbooks.open(path & BomName) share|improve this answer answered Jul 29 at 17:11 Jason 1467 Thank you!