+ Reply to Thread
Results 1 to 3 of 3

Redifining Named Ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    07-30-2010
    Location
    Warrington, England
    MS-Off Ver
    Excel 2010
    Posts
    71

    Arrow Redifining Named Ranges

    Hi there,

    I'm having problems redefining a named range on a worksheet based on a change event attached to a combo box on a form. Here's my code:

    Dim WS as Worksheet
    
    Set WS = Activesheet
    
     WS.Range("O6:O7").Names = "Rng" & WS.Name
    I've tried numerous variations of the above but always end up with an error message. The above code gives me an "Object Doesnt Support This Method or Property"

    I'm sure it's something simple....

    Many thanks

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Redifining Named Ranges

    Try .Name, not .Names plural

  3. #3
    Registered User
    Join Date
    07-30-2010
    Location
    Warrington, England
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: Redifining Named Ranges

    Doh.... I thought I'd tried that....clearly not. Many thanks MickG, all sorted now

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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