+ Reply to Thread
Results 1 to 2 of 2

Object required error

  1. #1
    Registered User
    Join Date
    07-25-2011
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    14

    Object required error

    Hi Guys, I am trying to code a macro which will basically look through a list of values. What it will do is go through each entry of the S column (starting from S2), see if that entry is less than30 and if it is will copy the entire entry (A2:AH2) to another worksheet. I have written some code but I am getting the object required error and I have some questions

    1) how do I perform operations one two declared variables ranges. For example the way I use it in my code is as follows but I get am error (object required)

    Please Login or Register  to view this content.
    2) I am using a for loop and I want the declared ranges to be offset by one row when the loop runs again. Again I am getting an error for this and the code I am using is..


    Please Login or Register  to view this content.


    Any kind of help would be appreciated Here is the whole code below if you guys want to have a look


    Please Login or Register  to view this content.
    Last edited by davesexcel; 07-26-2011 at 12:56 AM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: 2 quick questions to get rid of object required error in this short code

    Hi someone and welcome to the forum. Please take a moment to read the forum rules located here and amend your title as per Rule #1. Also, you need to wrap all code in code tags as per Rule #3. Once you do that, someone will be able to help you.

    Regards
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

+ 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