+ Reply to Thread
Results 1 to 8 of 8

need help creating named ranges! getting error 450

  1. #1
    Registered User
    Join Date
    04-09-2015
    Location
    netherlands
    MS-Off Ver
    excel 2013
    Posts
    8

    need help creating named ranges! getting error 450

    Hi everyone,

    I'm trying to make a VBA code that creates about 10 different named ranges, taking the formulas to be used in the named ranges from a column. (I'll use a button to update this list every so often)
    I'm currently stuck on having it create different names for each row.
    Below is the basic formula im using, trying to get the hang of it.

    Please Login or Register  to view this content.
    Trying it like this, I get error code 450
    Can anyone tell me what I'm doing wrong?

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: need help creating named ranges! getting error 450

    Can you attach a sample of your file?

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,263

    Re: need help creating named ranges! getting error 450

    What is in S7? Does it contain spaces?
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: need help creating named ranges! getting error 450

    Why are you naming the same range, with the same name, 10 times?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    04-09-2015
    Location
    netherlands
    MS-Off Ver
    excel 2013
    Posts
    8

    Re: need help creating named ranges! getting error 450

    Since I'm working with some confidential data, I can't send the file I'm working on, but I've created this dummy file to get my idea across.
    There's still some dead-end parts to my VBA there; I'm aware of those, but i figured I need to fix my main problem before going further.

    dummy.xlsm

    I sometimes have trouble explaining myself, so please tell me when I'm being unclear.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,263

    Re: need help creating named ranges! getting error 450

    You're trying to give names like a800 to the cells - you can't do that because that is an actual cell address already.

  7. #7
    Registered User
    Join Date
    04-09-2015
    Location
    netherlands
    MS-Off Ver
    excel 2013
    Posts
    8

    Re: need help creating named ranges! getting error 450

    @romperstomper: s7 contains the number of one of my coworkers. It does not contain spaces.

    @ norie: Basically I'm trying to use the for c = 1 to 10 part, to create a expanding list of employees.
    I'll have to make it count the rows after this. That part isn't really done yet

  8. #8
    Registered User
    Join Date
    04-09-2015
    Location
    netherlands
    MS-Off Ver
    excel 2013
    Posts
    8

    Re: need help creating named ranges! getting error 450

    @ romperstomper So if I just change the code Im using a little, to make it create names like a800a or something, it could work?

    edit: I've tried it like that, and it works! thanks a lot for the quick, useful responses people! I'm very grateful!
    Last edited by treepio; 05-01-2015 at 06:09 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Creating Dynamic named ranges in VBA
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2014, 11:20 AM
  2. Errors occuring when creating a set of named ranges
    By Kaigi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2009, 02:57 PM
  3. [SOLVED] Creating Named Ranges with VBA
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2006, 01:05 PM
  4. Creating named ranges.....Error
    By shishi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2005, 05:05 PM
  5. Creating charts with Named ranges
    By beakerboy in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-11-2005, 11:51 AM

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