+ Reply to Thread
Results 1 to 5 of 5

Macro for two named ranges

  1. #1
    Registered User
    Join Date
    10-01-2008
    Location
    Canada
    Posts
    27

    Macro for two named ranges

    Hi All,

    I have this code, which works fine...

    Please Login or Register  to view this content.
    I want to add a second range though (data2). How would i go about doing this?

    I tried the following...
    Please Login or Register  to view this content.
    ...and a few other things I thought might work, but got nada...

    I looked on the forums a bit but couldn't find anything that had 2 named data ranges specifically.

    Thanks for your assistance!
    No.Solutions.
    Last edited by No.Solutions.; 02-24-2009 at 05:54 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro for two named ranges

    Try
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-01-2008
    Location
    Canada
    Posts
    27

    Re: Macro for two named ranges

    Thanks for the reply!

    Tried the code you supplied and it doesn't work...I keep getting a debug thing on the Range =/

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro for two named ranges

    Do the names actually exist?

  5. #5
    Registered User
    Join Date
    10-01-2008
    Location
    Canada
    Posts
    27

    Re: Macro for two named ranges

    Just tried it again, redid the data ranges...I think one of the drop downs I had created was causing an issue, so tried it without it worked fine...then added it in to the very end of the data range and now it works...I switched the ranges around which may have done nothing..

    End result
    Please Login or Register  to view this content.
    Thanks for your help!! :D

+ 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