+ Reply to Thread
Results 1 to 10 of 10

Cell Range from the address

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Cell Range from the address

    Hi,

    i have a macro running which produces me cell address like $GL$3

    from the above cell address i just need GL. could you please tell the macro tip to achieve this?

    Quick reply will be appreciated.

    Thanks in advance...

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

    Re: Cell Range from the address

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Cell Range from the address

    Thanks patel, but i have a question,, i my macro returns only $A$4 then the same code which you have given is applicable??

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    What do you need the GL for?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Cell Range from the address

    i have a macro to get the cell address for the value given in a macro.. it searches for a given value in the exceel sheet and gives me cell address, but the cell address is returned as $GL$4, but i need only GL so that i can get identify the range as GL1 to GLn..

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Cell Range from the address

    Hi, kiran527,

    the answer to your question to patel45 is: no.

    Maybe use Cells instead of Range and work with the numeric value of the address:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Cell Range from the address

    Please Login or Register  to view this content.
    You would replace the text $GL$3 with the variable.
    Cheers
    Andy
    www.andypope.info

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    As Holger says, you could use the column number.

    You might even be able to get that from the code that produces the address.

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Cell Range from the address

    It sounds Like you only want to have the Active Column displayed.

    If so, try this:
    Please Login or Register  to view this content.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  10. #10
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Cell Range from the address

    Thanks Holger, your solutions is working for me.. thats cool.. thanks one again

+ 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] Range Address in a Cell, Use in Formula
    By codeslizer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2013, 05:27 AM
  2. Set Range address from a Cell Value
    By NTB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2011, 08:53 PM
  3. Cell address in a range
    By starguy in forum Excel General
    Replies: 7
    Last Post: 05-03-2006, 07:00 AM
  4. [SOLVED] cell address rather than range name
    By Angi Bemiss in forum Excel General
    Replies: 1
    Last Post: 11-30-2005, 08:50 PM
  5. Cell Address:a range
    By Michael Link in forum Excel General
    Replies: 3
    Last Post: 08-03-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