+ Reply to Thread
Results 1 to 5 of 5

VB Code to put formula in cell if changes in certain cell

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to put formula in cell if changes in certain cell

    Hello:

    Please refer to attached file.

    I have a dropdownlist is cell A1.
    I need VB Code to do the following.

    Once i complete selecting the value in cell A1 then need formula in cll D3 = C3

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: VB Code to put formula in cell if changes in certain cell

    Why use VBA???

    Try this:

    =IF(B3="","",$A$1)

    i removed the code as it seemed to be faulty (as well as unnecessary).
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to put formula in cell if changes in certain cell

    Hello Glenn:

    I think there is misunderstanding.
    I need formula in cell once i change the selection from cell A1.
    D3 "= C3"
    D4 "= C4"

    My above requirement is for some special purpose in my project.

    Please let me know if you have any questions.
    Thanks.

    Riz

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: VB Code to put formula in cell if changes in certain cell

    Sorry, but I haven't a clue what you want!!

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VB Code to put formula in cell if changes in certain cell

    Is this what you are wanting to achieve???

    In sheet module...

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Vba code when cell in range returns a certain value, enter formula in nearby cell
    By dsrt16 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2018, 08:16 AM
  2. Replies: 6
    Last Post: 01-23-2018, 04:49 AM
  3. [SOLVED] IF formula or vba code to not have numbers in cell added in total cell
    By Scrapnforfun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2017, 08:38 PM
  4. Replies: 2
    Last Post: 12-11-2014, 03:26 PM
  5. need a formula or vba code to change cell value form another cell
    By yusufugan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2013, 10:15 AM
  6. [SOLVED] want to edit recorded macro code or copy a cell with formula and paste it down to "x" cell
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-25-2013, 04:57 PM
  7. [SOLVED] Code to delete cell contents IF the result of a formula in the cell = 0
    By jayjaynz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2013, 03:58 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