+ Reply to Thread
Results 1 to 3 of 3

Passing a range

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Passing a range

    Dear Forum members
    The following code gives an error message "Method Range of Object_Global failed. on the line marked with*
    Please Login or Register  to view this content.
    I would be very grateful for advice in pointing out what is wrong.
    If the variable is replaced with the range name then the code works and I get a value for p. I need the variable though for the Function will be used to
    filter several tables.
    John
    Last edited by j_Southern; 02-03-2012 at 06:23 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: Passing a range

    You've already said that TryTable is a range, so you don't need to include it inside a Range()...

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Passing a range

    Andrew-R
    Doh ! Thanks
    John

+ 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