+ Reply to Thread
Results 1 to 5 of 5

Excel Table Range

  1. #1
    Registered User
    Join Date
    04-17-2014
    Location
    DUbai
    MS-Off Ver
    Excel 2007
    Posts
    63

    Excel Table Range

    Dear Sir

    Please help on this

    I have a table name with XYZ, this table is on sheet1!C2:F25.

    is there any formula or VBA function I can get this Range. as I want to see in msgbox {"XYZ table is on sheet1!C2:F25"}

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Excel Table Range

    Range("XYZ").address will give you the address without the sheet name. To get the sheet name use Range("XYZ").Parent.name. Concatenate as needed.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    04-17-2014
    Location
    DUbai
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Excel Table Range

    Thank Sir

    its working amezzing

  4. #4
    Registered User
    Join Date
    04-17-2014
    Location
    DUbai
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: Excel Table Range

    sir

    its getting only body data

    is it possible to get with header range also

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Excel Table Range

    The header is not part of the named range. You can 'work around' this:
    range("XYZ").offset(-1,0).Resize(range("XYZ").Rows.Count+1, range("XYZ").Columns.Count).Address

+ 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. Excel Table using a named range
    By ManUBlueJay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2014, 11:17 AM
  2. VBA how to convert a range to a table in excel 2010
    By LindaB1016 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2014, 11:26 PM
  3. [SOLVED] Copy Excel Range with formats into new Doc from Template's table
    By scotta in forum Word Formatting & General
    Replies: 21
    Last Post: 09-05-2012, 12:59 PM
  4. search in range and insert match in Excel table with VBA
    By wibni in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2011, 10:52 AM
  5. [SOLVED] Copied range from excel to word (but not in table-form)
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2006, 09:15 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