+ Reply to Thread
Results 1 to 6 of 6

VBA to enter formula in cell not calculating...showing formula in cell

  1. #1
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    VBA to enter formula in cell not calculating...showing formula in cell

    I have a Userform with the following code (this is just part of my code) to enter formulas into my worksheet.

    Everything in my code works except the last formula for some reason...it's just entering it in the cell and it's showing the formula, it's not actually calculating it.

    The one that's having an issue is this one below...the last one in the set example...every other line of code is running properly.

    What am I missing here?

    Please Login or Register  to view this content.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: VBA to enter formula in cell not calculating...showing formula in cell

    Probably need the workbook to test and see.
    You should use:
    Please Login or Register  to view this content.
    since you have R1C1 formulas.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: VBA to enter formula in cell not calculating...showing formula in cell

    That didn't work either. Here's a blank workbook. The data is entered using the "Enter New Data" button.

    sample.xlsm

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: VBA to enter formula in cell not calculating...showing formula in cell

    The cell you are entering the formula into is formatted as text, therefore the formula is being evaluated as just some text.
    Format it as either general or a number or date, whatever is applicable to your needs.

  5. #5
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: VBA to enter formula in cell not calculating...showing formula in cell

    Holy moly I knew that should be the case too but I made an assumption without checking. Boy. Thanks!

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: VBA to enter formula in cell not calculating...showing formula in cell

    My pleasure.
    Thanks for the rep. points.

    Please click the Thread Tools drop down box above your first post and choose solved.

+ 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] Enter formula result from one cell into a COUNTIF formula in another cell. Help please!
    By gregrach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-10-2014, 11:23 AM
  2. Macro error, Formula cell showing a green triangle in top cell
    By sherry_1991 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2013, 02:09 PM
  3. Replies: 0
    Last Post: 08-14-2012, 10:42 AM
  4. How to use VBA to enter a formula into a cell where the formula contains a dynamic array
    By LadyFenelopy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2012, 09:46 AM
  5. Using VBA to enter a formula into a cell - conflict in programming terms and formula
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2011, 06:22 PM
  6. Replies: 11
    Last Post: 09-09-2007, 05:05 AM
  7. [SOLVED] Cannot enter formula in a cell after removing a circular formula
    By Big Corona in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-05-2005, 02:06 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