+ Reply to Thread
Results 1 to 3 of 3

Insert formula for calculation

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    142

    Insert formula for calculation

    I'm looking to insert code into VB to add a formula. I want to select cell B8 and use the cell D5*8. I have the following code, but doesn't seem to help:

    Please Login or Register  to view this content.
    Any help Please

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Insert formula for calculation

    hi madhatter40, are you sure it's this line that doesnt work? seems to work fine for me. you can shorten it further though like this:

    Please Login or Register  to view this content.
    but it shouldn't have any difference in the results. maybe you want to upload a sample file & see what went wrong

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    142

    Re: Insert formula for calculation

    Here is some of the code I'm trying to use it in"

    Please Login or Register  to view this content.
    I call this code from:

    Please Login or Register  to view this content.
    What I'm looking for id when the user enters a number into D5 to automatically updates B8. I hope this helps.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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