+ Reply to Thread
Results 1 to 5 of 5

Getting Compile Error - Expected Range or Function right after updating to Excel 2016...??

  1. #1
    Forum Contributor
    Join Date
    08-08-2015
    Location
    North Carolina USA
    MS-Off Ver
    MS Office 2016
    Posts
    368

    Getting Compile Error - Expected Range or Function right after updating to Excel 2016...??

    Hi All, so I have been working on this macro for the past day and I happened to also update to Office 2016 today. Now, I am getting a compile error = Expected Variable or Function for every one of my Range or Selection code lines... does anyone know if something changed... or what is happening here? here it the code... first error occurs at line "Range(Selection, Selection.End(xlDown)).Select" right after the Range("Q24").Select line

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Getting Compile Error - Expected Range or Function right after updating to Excel 2016.

    I do not know why these are causing compile errors. I am not getting any compile errors in Excel 2016, although I cannot actually run this without your file.

    In the meantime, I discourage selecting cells to do anything with them. It slows down performance and clogs up the code. For example, I would modify this
    Please Login or Register  to view this content.
    To this
    Please Login or Register  to view this content.
    and change this
    Please Login or Register  to view this content.
    to this
    Please Login or Register  to view this content.
    You have lots and lots and lots of these types of constructs. This may have the added benefit of clearing the compiler error.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    08-08-2015
    Location
    North Carolina USA
    MS-Off Ver
    MS Office 2016
    Posts
    368

    Re: Getting Compile Error - Expected Range or Function right after updating to Excel 2016.

    Okay, thanks! I will clean it up and retry

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

    Re: Getting Compile Error - Expected Range or Function right after updating to Excel 2016.


  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Getting Compile Error - Expected Range or Function right after updating to Excel 2016.

    BG1983, your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

+ 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] If err.number... gives expected function or variable in Excel 2016
    By BuZZarD73 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-26-2016, 11:18 AM
  2. Getting compile error expected function or variable
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2014, 01:33 AM
  3. [SOLVED] Function Error: Compile error: Expected: list separator or )
    By goss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2014, 02:10 PM
  4. [SOLVED] Compile Error Expected Function or Variable
    By shiser in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-22-2014, 09:18 AM
  5. [SOLVED] With my user defined function... Compile Error: Expected: =
    By kid_epicurus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2012, 04:03 PM
  6. Compile Error:- expected function or variable problem
    By skin.uk1 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-08-2011, 02:56 PM
  7. [SOLVED] Compile error: Expected Sub, Function, or Property
    By Cloudfall in forum Excel General
    Replies: 3
    Last Post: 08-30-2005, 01:05 AM

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