+ Reply to Thread
Results 1 to 5 of 5

Please scrutinize this simple working function and give your suggestions

  1. #1
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Please scrutinize this simple working function and give your suggestions

    Hi guys,

    My i ask that you scrutinize this function for me. Please give me your input and suggestions.

    Although the code works just fine, I am scared that I am teaching myself methods of doing things/writing code that are not entirely wholesome and helpful. I.e., I am using the wrong methods.

    This is what I wanted to achieve (working but to what end?):

    Loop through a named range "Locations" (I ended up using the starting row (130)), and find the next empty row in this range. Save my new data to this empty row in this range.

    I am making use of ActiveCell, and don't know if this is the right thing. Should one not be using EmptyRow or something like that?

    Please Login or Register  to view this content.
    thank you!
    Last edited by onmyway; 03-01-2015 at 09:05 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Please scrutinize this simple working function and give your suggestions

    possibly>
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Re: Please scrutinize this simple working function and give your suggestions

    Hi Dave

    I have a specific range I need to do the last row in: A130:E180

    I believe the method you show above, is to find the next row, but make use of xlUp method, and will therefore not take my parameters into account?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Please scrutinize this simple working function and give your suggestions

    Changing rows.count to 180 should do it.

    Or you can work with this.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Re: Please scrutinize this simple working function and give your suggestions

    Quote Originally Posted by davesexcel View Post
    Changing rows.count to 180 should do it.

    Or you can work with this.

    Please Login or Register  to view this content.
    Thanks Dave!

    Note: I closed this post, as I posted an updated version: http://www.excelforum.com/excel-prog...ml#post4002740

+ 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] Simple MID function not working
    By mel2131 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-08-2013, 11:15 AM
  2. Can't get simple if function working
    By Cicada in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-10-2012, 07:54 PM
  3. Simple IF equals function not working
    By jodapo in forum Excel General
    Replies: 2
    Last Post: 09-05-2009, 03:26 AM
  4. A simple IF function isn't working for me...
    By NODAK1979 in forum Excel General
    Replies: 5
    Last Post: 09-09-2008, 10:43 AM
  5. Very simple function not working
    By ScoTTyBEEE in forum Excel General
    Replies: 3
    Last Post: 10-21-2005, 01:05 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