+ Reply to Thread
Results 1 to 7 of 7

Disable extend data range for workbook

  1. #1
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Disable extend data range for workbook

    I have a workbook which has some conditional formatting in columns A:B. A user will be putting notes in column C. When they put notes, the conditional formatting automatically extends to column C. I know that you can turn it off on an individual compter (Options/Advanced/uncheck "Extend data range formats and formulas"), but is there a way via VBA to turn it off on this specific workbook, so that when I share it with others it will work correctly for them?

    I tried:

    Application.AutoCorrect.AutoFillFormulasInLists = False

    But that didn't seem to work. Any suggestions?

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable extend data range for workbook

    Try
    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable extend data range for workbook

    or a heavy handed workaround which prevents CF from being applied to column C

    In sheet module:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Disable extend data range for workbook

    Thanks. This code didn't prevent the CF from expanding...I'll play around with your second suggestion. Appreciate the assistance

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable extend data range for workbook

    Automatically extending data range formats and formulas is a bit of a curate's egg
    - Expanding down a column is usually ok
    - Expanding into the next column is usually not ok (data type generally varies by column

    Application-level default settings are very useful but, wherever it makes sense, the user should also have access to workbook-level settings
    - Microsoft should add a parallel set of options set out to look EXACTLY the same (with some options greyed out because not available)

  6. #6
    Registered User
    Join Date
    11-17-2009
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Disable extend data range for workbook

    I came up with a simple solution that didn't involve any code. I just put DIFFERENT conditional formatting in column C that really didn't affect the text in any way. That way, the CF in A:B won't auto extend. Now...why didn't I think of that sooner? :-)

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Disable extend data range for workbook

    The simplest solution is often the best

+ 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. Extend range of table automatically to fit data
    By b624333 in forum Excel General
    Replies: 1
    Last Post: 07-14-2014, 01:00 PM
  2. Extend range when new data added for charts
    By johnfash in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-30-2013, 06:58 AM
  3. [SOLVED] Disable Closing Of Workbook Until Cells Receive Data
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2012, 03:05 PM
  4. Dynamic Range doesnt extend pasted data?
    By Armitage2k in forum Excel General
    Replies: 12
    Last Post: 05-02-2012, 09:11 AM
  5. How Does One Extend a Range to Include One Row of Data?
    By StevenM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2012, 11:02 AM
  6. Replies: 1
    Last Post: 11-10-2009, 02:44 AM
  7. Extend a data range
    By MNicholas in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-22-2005, 04: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