+ Reply to Thread
Results 1 to 6 of 6

Unwanted change of formulas in a table

  1. #1
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Unwanted change of formulas in a table

    Hi,
    I am copying formulas in a table in the same column via VBA.
    How do I prevent the formulas automatically being copied in ALL of the cells of the column?

    Example:

    Please Login or Register  to view this content.
    After running this in a sub all cells in column B of the table have the same formula "=4+4"
    How do I prevent that ?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Unwanted change of formulas in a table

    There are a few methods on this website you might want to employ to prevent table formulas from auto-populating:
    http://office.microsoft.com/en-us/ex...#_Toc295810735

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Unwanted change of formulas in a table

    Are you sure? I dont get that???? Ignore me, i wasnt trying it on a table.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  4. #4
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Re: Unwanted change of formulas in a table

    Thanks Ron,
    That setting works okay, but it seems to be an Excel setting rather than a workbook setting.
    That means that when I distribute my workbook, I have to make sure users change that setting too.
    Would there possibly be a way to have the same result on a workbook level, of (even better) on a table level ?

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Unwanted change of formulas in a table

    Well...maybe a "stupid Excel trick"?
    Try this:
    Please Login or Register  to view this content.
    That code prevents Excel from detecting a formula pattern.

    Is that something you can work with?

  6. #6
    Forum Contributor
    Join Date
    12-07-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2021
    Posts
    126

    Re: Unwanted change of formulas in a table

    That seems to be the trick!
    First take the values out of an order and then fill the cell with formulas.
    Thanks !

+ 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. How to hide unwanted values created by formulas
    By ygrbphl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2014, 04:43 PM
  2. Formulas in a table that do not change when being sorted
    By jasonleewkd in forum Excel General
    Replies: 0
    Last Post: 01-25-2013, 02:06 AM
  3. Replies: 3
    Last Post: 12-20-2011, 06:12 PM
  4. Clearing unwanted info from cells with formulas in them
    By jonahbeast in forum Excel General
    Replies: 4
    Last Post: 07-28-2009, 04:52 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