+ Reply to Thread
Results 1 to 6 of 6

CurrentRegion issues

  1. #1
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    CurrentRegion issues

    This should be simple and I'm sure it worked a few weeks ago. Indeterminate amount of info in a worksheet. The start of my custom function then seems to go wrong.
    Please Login or Register  to view this content.
    At the moment this ignores the passed in table. The result always comes back as $A$1. There are about 10 lines and columns on xxxSheet1. Where have I gone wrong? TIA

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

    Re: CurrentRegion issues

    Is there any data in A2, B1 or B2?

  3. #3
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    Re: CurrentRegion issues

    yup data in all cells from A1 to about H10.

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

    Re: CurrentRegion issues

    Keep forgetting, you cannot use CurrentRegion in a function if it's being called from a worksheet.

  5. #5
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    Re: CurrentRegion issues

    That tracks with what I was testing ie the immediate window gave me the right info, but the function isn't. thanks.

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

    Re: CurrentRegion issues

    Glad to help & 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. Replies: 0
    Last Post: 09-24-2014, 04:09 PM
  2. What is the best way to SUM a currentRegion?
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2013, 07:50 PM
  3. [SOLVED] Inserting CurrentRegion into another worksheet
    By dalmagu2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2012, 08:29 PM
  4. Using currentregion property
    By ingolf_ingolfsen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2011, 04:19 AM
  5. [SOLVED] Select first row of currentregion
    By vba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2006, 08:25 AM
  6. currentregion
    By flow23 in forum Excel General
    Replies: 13
    Last Post: 11-23-2005, 01:10 PM
  7. CurrentRegion less one Row
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-07-2005, 01:20 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