+ Reply to Thread
Results 1 to 8 of 8

Getting error in Range.End() function

  1. #1
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    Getting error in Range.End() function

    Hi Guys.
    I am getting error in using Range.End() formula.
    I am using this formula in two different functions but 1 function having an issue while 2nd function is working fine.
    Take a look at the following image and tell me where is the issue?
    excel_error.png

    Thanks and best regards

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Getting error in Range.End() function

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    Re: Getting error in Range.End() function

    unable to attach excel file.
    giving error "You are not allowed to post any kinds of links, images or videos until you post a few times."

    following are the images of file may be it will helpful for you

    form1.png
    code-1.png
    code-2.png


    Please Login or Register  to view this content.
    Thanks and best regards

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Getting error in Range.End() function

    I have no idea why but if you cut and paste the LastRow line down to where you have lrow and rename it the code works. The only thing I can thing of is maybe the """ character

  5. #5
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    Re: Getting error in Range.End() function

    nigelog i did it. copy and paste that line and change accordingly but the result is same. Getting Error
    The only thing I can thing of is maybe the """ character
    by removing "" has the same result.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Getting error in Range.End() function

    On the line that doesn't work you have x1Up not xlUp it should be a lower case L, not the number one

  7. #7
    Registered User
    Join Date
    08-13-2020
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    15

    Re: Getting error in Range.End() function

    Thats great Fluff13.
    I do it and its now working.
    Thanks man

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Getting error in Range.End() function

    You're welcome & thanks for the feedback.

+ 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. QuickSort Function Gives Subscript Out Of Range Error
    By Genus Max in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2020, 10:35 PM
  2. [SOLVED] Reference error in UDF Function that has range parameter
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-27-2016, 04:36 PM
  3. Variable in a Range Function - Intermittent Error
    By rsmithline in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-21-2015, 09:35 AM
  4. [SOLVED] Using IF function for a range returns error
    By LoneWolf3574 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2013, 04:53 AM
  5. getting an error- a script out of range - Join function
    By AB33 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2012, 01:29 PM
  6. Reveal error of function ADNormailty(Range)
    By flying007 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-30-2011, 12:41 AM
  7. Error passing a range to the vlookup function
    By twills in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2011, 02:42 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