+ Reply to Thread
Results 1 to 5 of 5

Picking a range out of a larger range with tightest data set

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    Abilene, KS
    MS-Off Ver
    2013
    Posts
    6

    Picking a range out of a larger range with tightest data set

    Hello All,

    I am trying to write a sub that will find a range of sixty cells inside a range of ninety cells whose maximum value minus the minimum value is the smallest. I wrote the following code:

    Please Login or Register  to view this content.
    When I try to run this sub, a message box informs me that I have a type mismatch. Any help would be greatly appreciated.

  2. #2
    Registered User
    Join Date
    09-26-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Picking a range out of a larger range with tightest data set

    hello,

    Replace all your + signs with the & and you should be there.
    In your macro press ctrl + h and fill in the files, enter and finished.

    reg.
    Demeter

  3. #3
    Registered User
    Join Date
    08-22-2014
    Location
    Abilene, KS
    MS-Off Ver
    2013
    Posts
    6

    Re: Picking a range out of a larger range with tightest data set

    Thanks Demeter,

    I incorporated your changes and now I'm not getting any error messages, but absolutely nothing happens. I tried inserting a command button, but nothing happens. Are there any other possible issues?

    Please Login or Register  to view this content.
    Thanks to all who have suggestions.

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Picking a range out of a larger range with tightest data set

    You don't need all those Cstrs but I don't know if that causes the problem. Can you post a workbook?

    Edit: you've also missed a couple of + signs. Does this work?
    Please Login or Register  to view this content.
    Last edited by StephenR; 12-04-2014 at 11:02 AM.

  5. #5
    Registered User
    Join Date
    08-22-2014
    Location
    Abilene, KS
    MS-Off Ver
    2013
    Posts
    6

    Re: Picking a range out of a larger range with tightest data set

    Thanks, StephenR, your changes fixed everything.

+ 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. Pulling a range from a larger group
    By ccole in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2014, 02:27 PM
  2. Data import each month that gets detected and put into larger range
    By aaaaaaiden in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2013, 10:28 AM
  3. [SOLVED] Dynamic range for graph not picking up new data
    By Trevasaurus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 06:03 PM
  4. picking a value out of a range
    By erics44 in forum Excel General
    Replies: 12
    Last Post: 11-10-2010, 04:10 PM
  5. How to paste to a larger range
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2010, 06:19 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