+ Reply to Thread
Results 1 to 4 of 4

VBA Code To Return The Number Of Columns Between Two Dynamic Ranges.

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    13

    VBA Code To Return The Number Of Columns Between Two Dynamic Ranges.

    Hi Forum,

    I need a VBA Code To Return The Number Of Columns Between Two Dynamic Ranges.

    For example if "Range1 = $A$1" and "Range2 = $E$1" then the number of columns would be "4"

    I will then be using this result in an offset code.

    Many Thanks,

    -Ollie

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA Code To Return The Number Of Columns Between Two Dynamic Ranges.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-18-2013
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: VBA Code To Return The Number Of Columns Between Two Dynamic Ranges.

    Thanks! and duh! .... sometimes after a long day even the obvious escapes. Time for a break!

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA Code To Return The Number Of Columns Between Two Dynamic Ranges.

    we all have those

    please mark as solved if happy with solution
    Last edited by humdingaling; 06-04-2013 at 01:44 AM. Reason: doh already marked

+ 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