+ Reply to Thread
Results 1 to 3 of 3

application-defined/object-defined error 1004 when trying to read from or write to cells

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    30

    application-defined/object-defined error 1004 when trying to read from or write to cells

    Hi all,

    I'm getting this error when trying to read / write to cells in a worksheet.
    However, if I give names to cells - which I can't afford to - it works! Code attached.

    Could anyone please help?
    Many thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: application-defined/object-defined error 1004 when trying to read from or write to cel

    It would also work if you used "A2" instead of A2.

    PS What do you mean you can't 'afford' to name cells?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: application-defined/object-defined error 1004 when trying to read from or write to cel

    When you can't spot the obvious it is time for a break; I'm off for some junk food now
    Many thanks, Norie!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1