+ Reply to Thread
Results 1 to 11 of 11

Reading only values for macro

  1. #1
    Registered User
    Join Date
    07-29-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Reading only values for macro

    I have a small problem, I have a macro that calculates a table of values by selecting from a range of values, namely x and y coordinates in A and B columns. It works fantastic if there are just the values there and nothing below the last point, the working macro can be seen in the attachment Project_JHunt...
    Now if you look at Project_JHunt_2 the macro doesnt work as there are breaks between the values and below the last point the cells have "=Drilling!S25" etc. and the macro wont work with these in there.
    So I ask, please, does anyone know a way to display the values from the "Drilling" worksheet under "Only points inside" to the "Block Block" worksheet so that my macro will work...have spent hours trying to work it out and I just cant do it.
    Any help or guidance at all will be greatly appreciated.
    Thank you!
    Attached Files Attached Files
    Last edited by stanysurfer; 09-13-2010 at 05:03 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Reading only values for macro

    Hi stanysurfer,
    Not that simple, It will require Sensibility tests. You will have to find four known points out side the area ( Max and min of points ).
    The test point to each the four known points out side will make four lines.
    Sensibility tests - if any of the four test lines intersect any of the lines that form the shape a total of four times ;Its in .
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    07-29-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Reading only values for macro

    Quote Originally Posted by pike View Post
    Hi stanysurfer,
    Not that simple, It will require Sensibility tests. You will have to find four known points out side the area ( Max and min of points ).
    The test point to each the four known points out side will make four lines.
    Sensibility tests - if any of the four test lines intersect any of the lines that form the shape a total of four times ;Its in .
    Pike,
    I can calculate all the points which are inside and outside of the area, I just need the macro to read those values, thats all. Is there a way to write into the macro to look up the values in the required cells that only have numbers in them...Thats all I really need..Thought it would just be a simple step i missed or something??
    Cheers

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Reading only values for macro

    yes you have missed that its not that simple

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Reading only values for macro

    should say ,it can be done excel can compile all the calx its a complex question

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Reading only values for macro

    See attached file, maybe I did not understand the problem but I changed the macro 'CalcGammaDistances', and now it seems that works... I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

  7. #7
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Reading only values for macro

    appoligise stanysurfer did realise that you had already done all the hard work
    well done antoka05

  8. #8
    Registered User
    Join Date
    07-29-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Reading only values for macro

    Quote Originally Posted by antoka05 View Post
    See attached file, maybe I did not understand the problem but I changed the macro 'CalcGammaDistances', and now it seems that works... I hope it's what you need.

    Regards,
    Antonio
    Mate your a legend, exactly what I needed, Thank you so much!!
    And cheers Pike for your input also, you guys are great

  9. #9
    Registered User
    Join Date
    07-29-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Reading only values for macro

    Quote Originally Posted by pike View Post
    appoligise stanysurfer did realise that you had already done all the hard work
    well done antoka05
    No problem at all mate, all good now

  10. #10
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Reading only values for macro

    Okie dokie

    wow.... lots of hard work; very impressive

  11. #11
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Reading only values for macro

    Thanks to both.

    Regards,
    Antonio

+ 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