+ Reply to Thread
Results 1 to 6 of 6

Reference a worksheet without naming

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Reference a worksheet without naming

    Is there a way to reference a sheet in a workbook without naming the sheet? In code you have to say
    Please Login or Register  to view this content.
    or something like that. I want to write 1 macro that covers all single sheet workbooks.
    Please Login or Register  to view this content.
    doesn't work....
    Last edited by Tortus; 06-20-2014 at 04:27 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Reference a worksheet without naming

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reference a worksheet without naming

    Hi,

    If there is only one sheet then presumably

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Reference a worksheet without naming

    do you have a code that works for a specific sheet ? paste it here, I'll change it for all sheets
    If solved remember to mark Thread as solved

  5. #5
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Reference a worksheet without naming

    Worked! Thank you. Don't know why I didn't think to do that...
    Please Login or Register  to view this content.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Reference a worksheet without naming

    You're welcome!

+ 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] Naming a new worksheet
    By ATLGator in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2013, 08:35 PM
  2. Worksheet Tab - Naming
    By dave6726 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 07-05-2007, 04:19 AM
  3. Naming a worksheet
    By dvzlan in forum Excel General
    Replies: 4
    Last Post: 11-01-2006, 06:05 PM
  4. Worksheet naming
    By scoobydoo2006 in forum Excel General
    Replies: 1
    Last Post: 10-17-2006, 05:30 AM
  5. Naming Worksheet
    By Denis in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-13-2005, 01:05 PM

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