+ Reply to Thread
Results 1 to 6 of 6

Using Indirect inside of Range

  1. #1
    Registered User
    Join Date
    02-18-2011
    Location
    Midwest, USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Using Indirect inside of Range

    This seems like it should be simple enough, but I can't get it to work.

    I have a simple macro that works fine

    Please Login or Register  to view this content.
    but I get "Compile error: Sub or Function not defined"

    Any help would be greatly appreciated
    Last edited by Leith Ross; 06-12-2013 at 12:58 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Using Indirect inside of Range

    Hello Jumper1,

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

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

    Re: Using Indirect inside of Range

    Why not use code to find the cell to paste to?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    02-18-2011
    Location
    Midwest, USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Using Indirect inside of Range

    Norie
    I am, the formula to find the cell to paste to is in cell C1. It determines the correct cell based on date.

    Leith
    Your suggestion works great. Thank you for your quick response.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Using Indirect inside of Range

    Hello Jumper1,

    You're welcome.

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

    Re: Using Indirect inside of Range

    Jumper

    Is the formula used elsewhere?

    If it isn't you could move the calculation to the code.

+ 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