+ Reply to Thread
Results 1 to 2 of 2

Changing a String to a Range

  1. #1

    Changing a String to a Range

    Hi

    Basically, I just want to know if there is any (easy) way of changing a
    string (as in, a cell in Excel contains a 3D cell range as text) to the
    appropriate range.

    So, in cell K12 I have the following text :
    'Quarter 1 Contract 03'!C12,'Quarter 1 Spot 03'!C12,'Quarter 2 Contract
    03'!C12,'Quarter 2 Spot 03'!C12,'Quarter 3 Contract 03'!C12,'Quarter 4
    Contract 03'!C12,'Quarter 4 Spot 03'!C12

    And I want to change this to a range in VBA so I can COUNTIF (cells <>
    0)!

    If I havent explained properly, say and I'll try harder!

    Thanks!


  2. #2
    Gary Brown
    Guest

    RE: Changing a String to a Range

    Example:
    Union(Range("A1:B2"), Range("C7:D8"))
    --
    HTH,
    Gary Brown
    [email protected]
    If this post was helpful to you, please select ''YES'' at the bottom of the
    post.



    "[email protected]" wrote:

    > Hi
    >
    > Basically, I just want to know if there is any (easy) way of changing a
    > string (as in, a cell in Excel contains a 3D cell range as text) to the
    > appropriate range.
    >
    > So, in cell K12 I have the following text :
    > 'Quarter 1 Contract 03'!C12,'Quarter 1 Spot 03'!C12,'Quarter 2 Contract
    > 03'!C12,'Quarter 2 Spot 03'!C12,'Quarter 3 Contract 03'!C12,'Quarter 4
    > Contract 03'!C12,'Quarter 4 Spot 03'!C12
    >
    > And I want to change this to a range in VBA so I can COUNTIF (cells <>
    > 0)!
    >
    > If I havent explained properly, say and I'll try harder!
    >
    > Thanks!
    >
    >


+ 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