+ Reply to Thread
Results 1 to 1 of 1

Error with Dynamic named range

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Error with Dynamic named range

    Hi,

    I referenced this post http://www.excelforum.com/excel-prog...eader-row.html to create vba for to name the range for a workbook based onheaders that don't start in row one.

    Attached is a sample of the workbook i am using this in, with the code in Module 1. The data starts in A7 so at the prompt for the top leftmost cell of the table i am entering A7 (am i instead supposed to put the cell of the leftmost header?). I am getting the 1004 error message: I am guessing it is because i have unacceptable characters in my headers. How do i adjust the code to replace any unacceptable characters (such as %, (, -) with an _?

    Help would be greatly appreciated (I am a bit of a vba novice, so I apologize if this seems like it should be easy to do).

    Here's my code:

    Please Login or Register  to view this content.
    Thanks,
    Angela
    Attached Files Attached Files

+ 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. getting an error when creating a dynamic named range
    By emesgee in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2013, 10:37 PM
  2. [SOLVED] Dynamic Named Range Help - Range Based on Values in Column
    By Filibuster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2012, 11:13 AM
  3. N/A Error on a dynamic named range
    By PelleCadol in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-14-2011, 08:19 AM
  4. Named ranges-Should I use a dynamic named range
    By foseco in forum Excel General
    Replies: 4
    Last Post: 06-11-2009, 03:56 PM
  5. Trapping error from Empty Dynamic Named Range
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2006, 10:45 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