+ Reply to Thread
Results 1 to 3 of 3

Reference Worksheet Named from User Input

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    9

    Reference Worksheet Named from User Input

    My code is breaking in two spots where I am trying to reference a cell range on a worksheet named by user input--"myValue" is the variable.

    FIRST BREAK:
    ActiveCell.FormulaR1C1 = _
    "=UPPER(TEXT(INDEX(Sheets(myValue)!C[-2],COUNTA(Sheets(myValue)!C[-2]),1),""mmmm d, yyyy""))"

    SECOND BREAK:
    ActiveChart.SeriesCollection(1).XValues = _
    "=Sheets(myValue)!B2:B500"

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Reference Worksheet Named from User Input

    Maybe like this :

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Reference Worksheet Named from User Input

    Unfortunately it did not work. Any other thoughts? My full code is below:

    Please Login or Register  to view this content.
    Last edited by TxNyCa; 05-22-2014 at 12:53 PM. Reason: Included workbook

+ 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. How to reference a table named in an input box?
    By JoeSkittles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2013, 03:06 PM
  2. search named ranges with user input
    By KrZyMiC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-16-2011, 07:15 PM
  3. User Input Form to worksheet
    By meister14 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2010, 10:31 PM
  4. User Input to change cell reference in formulas
    By williampdx in forum Excel General
    Replies: 5
    Last Post: 03-31-2010, 02:04 PM
  5. How to reference a cell based on user input?
    By ChromiumBlue in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-14-2006, 11:39 AM

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