+ Reply to Thread
Results 1 to 3 of 3

activecell.offset

  1. #1
    Registered User
    Join Date
    07-17-2010
    Location
    I
    MS-Off Ver
    Excel 2007
    Posts
    2

    activecell.offset

    Hello
    In the following code i get a runtime error "Application-defined or object-defined error"
    I know that a 1004 error is hard to find. Let me show you what i realize so far.
    Here is the code
    Please Login or Register  to view this content.
    The error occurs at the line I marked with ***
    After much pain I found that if I change the "ActiveCell.Offset(1, 1), ActiveCell.Offset(jobs, 31)" part to any other range like " "b4:af13" " (like it should amount to at the first loop instance) it runs perfectly.

    Can you please tell me how to fix it so I can run it with the activecell? (you might have noticed I am changing the active cell at each iteration of the loop)

    Thank You
    Last edited by steelsoul; 07-17-2010 at 09:24 AM. Reason: Solved

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: activecell.offset problem

    Try making the cwb active in order to use the activecell reference.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-17-2010
    Location
    I
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: activecell.offset problem

    Thank you.. so simple
    solved

+ 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