+ Reply to Thread
Results 1 to 5 of 5

How can I get range strings from cell values

Hybrid View

thunder_anger How can I get range strings... 11-02-2020, 01:50 PM
Bernie Deitrick Re: How can I get range... 11-02-2020, 02:52 PM
thunder_anger Re: How can I get range... 11-02-2020, 05:21 PM
JLGWhiz Re: How can I get range... 11-02-2020, 02:56 PM
JLGWhiz Re: How can I get range... 11-03-2020, 12:16 PM
  1. #1
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: How can I get range strings from cell values

    If you meant AA5:AB15 instead of AA5:AA15, then

    Sub Test()
    Dim r As Range
    For Each r In Range("C2",Cells(Rows.Count,"C").End(xlUp))
    Range(Range("C1").Value & r.Value & ":" & Range("D1").Value & r(1,2).Value).ClearContents
    Next r
    End Sub
    Bernie Deitrick
    Excel MVP 2000-2010

  2. #2
    Registered User
    Join Date
    03-18-2012
    Location
    Damietta, Egypt
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How can I get range strings from cell values

    perfect. it worked like a charm
    the two answers worked
    Last edited by thunder_anger; 11-02-2020 at 05:22 PM. Reason: forgot to thank both answers

+ 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] Button-macro to read ranges of cells and return values of other cells based on results
    By TnD_Guy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-06-2019, 04:45 PM
  2. Beginner question on how to read cells and changing values to the same cells
    By liorde in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-04-2019, 11:05 AM
  3. [SOLVED] I need to set ranges for Unique values, then from those ranges pick random cells...
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2014, 04:45 PM
  4. fomatting cells based on difference between values of cells two ranges.
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 04:08 AM
  5. [SOLVED] Selecting Ranges Based on Cells with same Values
    By nick_w79 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-17-2012, 04:18 AM
  6. Counting Cells with certain date ranges as values
    By audreyglennette in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-03-2006, 07:20 PM
  7. Replies: 0
    Last Post: 08-28-2005, 10:50 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