+ Reply to Thread
Results 1 to 4 of 4

Trouble Setting a Range

  1. #1
    Registered User
    Join Date
    06-24-2010
    Location
    Newbury, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Trouble Setting a Range

    Hello All,

    I know it's something really basic, but I'm having trouble using a range at the start of my macro. It's something to do with the way I'm referencing it I just can't seem to see the answer at the moment. I get a 'Run-time error 1004: Application-defined or object-defined error' on the final row of the code below. Any help would be very gratefully received.

    Many thanks in advance for any help,
    C Jones

    Please Login or Register  to view this content.
    Last edited by CJ944; 01-12-2012 at 10:52 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Trouble Setting a Range

    I think it's because you're not qualifying the Cells used in the range with a context, so you're trying to set a range on the Manugistics sheet that is a range of cells on the activesheet.

    Try:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Trouble Setting a Range

    Hi CJ944
    This line of code should work
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    06-24-2010
    Location
    Newbury, England
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Trouble Setting a Range

    Many thanks for these solutions, they were very helpful.

+ 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