+ Reply to Thread
Results 1 to 3 of 3

Formula by macro error

  1. #1
    Forum Contributor
    Join Date
    12-01-2010
    Location
    Southampton, England
    MS-Off Ver
    Excel 2007
    Posts
    303

    Formula by macro error

    Hello many thanks for taking the time to look at my problem,

    I'm trying to run a faily large formula via macro but every time I run it I get an error which I am not sure how to fix...

    Here is the formula:
    Please Login or Register  to view this content.
    Here is the forumla in macro form:
    Please Login or Register  to view this content.
    Error:
    Run-time Error '1004':

    Application-defined or object-defined error"
    Strangely this formula works in the sheet. If anyone can help identify the root of this problem, your help would be greatly appreciated.

    Many thanks

    Alan
    Last edited by ad9051; 12-19-2011 at 08:20 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula by macro error

    Alan,

    Give this a try:
    • Formula can be shortened to:
      Please Login or Register  to view this content.
    • Macro version:
      Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    12-01-2010
    Location
    Southampton, England
    MS-Off Ver
    Excel 2007
    Posts
    303

    Re: Formula by macro error

    TigerAvatar, you really are the boss! I need to learn how to write formula like that! You wouldn't believe how long some of my formula get.

    Many thanks

    Alan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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