+ Reply to Thread
Results 1 to 14 of 14

select range name from a cell

  1. #1
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    select range name from a cell

    hi

    would let to select and copy a range of cells

    the range of cells is pre named and the name appears in Sheet("RawData!M1")

    i have tried the following with no joy will keep trying

    Please Login or Register  to view this content.
    was sure about table as integer, tried variant and range

    thanks in advance
    Last edited by Geordie; 05-06-2010 at 07:54 AM. Reason: entering code correctly within the rules

  2. #2
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    forgot to say the range names will be from PIN1 up to PIN1000

    thanks

  3. #3
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    a few people have viewed this but no suggestions yet

    thought this would be easy for vba experts

  4. #4
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    please someone help me its now doing my head in trying to solve it

    must be possible

    please

    thanks

  5. #5
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: select range name from a cell

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button. For more information about these and other tags,
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  6. #6
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    corrected code entry

    can you help me solve my problem now?

    do i need to use indirect?

  7. #7
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: select range name from a cell

    As I understood, u just wanna do simple copy/ paste option thru VBA. right??

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    04-23-2010
    Location
    Albuquerque, USA
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: select range name from a cell

    A sample workbook would be great to help you out on this but what i did notice is that table name should be string.

  9. #9
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    yes its a simple copy and paste from RawData to Certificate with the range being variable dependingon the contents of RawData!M1

    attched a copy of the file

    thanks in advance
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    hi just tried to code posted but it doesnt work

    any other suggestions

  11. #11
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: select range name from a cell

    what this formula is supposed to do?
    =INDEX(INDIRECT(M1),2,1,A6)

    what about this one??

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    that was just me trying to solve the problem myself - unsuccessfully

    the other code you posted doesnt work

    i dont want to copy the sheet, just the select range

  13. #13
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    Please Login or Register  to view this content.
    tried this first then what you posted

    Please Login or Register  to view this content.
    then ammeded that to

    Please Login or Register  to view this content.
    still trying

  14. #14
    Forum Contributor
    Join Date
    11-18-2008
    Location
    uk
    MS-Off Ver
    Excel 2003 and Excel 2010(sometimes)
    Posts
    139

    Re: select range name from a cell

    solved it with the following code

    Please Login or Register  to view this content.
    thanks for all your help

    will be in touch if i need anymore help on this project or other projects

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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