+ Reply to Thread
Results 1 to 5 of 5

Entering specified cell value into a formula within a userform

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2010
    Posts
    19

    Entering specified cell value into a formula within a userform

    I have a userform that inputs a value from a textbox into column P of the row of the active cell when clicked.
    My end goal is to have the userform insert an "if" formula into column G of my worksheet that uses that data inserted in column P as my true statement.
    However it's saying expected end of statement where i have underlined and I'm not sure why my logic is failing.
    here is my code.

    Please Login or Register  to view this content.
    Any help on this would be super appreciated!!

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Entering specified cell value into a formula within a userform

    Can you be more specific on what you are trying to do with the if statement

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-06-2013
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Entering specified cell value into a formula within a userform

    Thanks for looking at this Stnkynts, to elaborate for you;

    If Column A cell in current row = "Yes" Then
    Put value of Column P of current row into Column G of current row
    Else Column G of current row should be blank

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Entering specified cell value into a formula within a userform

    Try:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-06-2013
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Entering specified cell value into a formula within a userform

    Works Perfect, Thanks Stnkynts!

+ 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. Entering text in next available cell with userform
    By molesy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-11-2013, 12:58 PM
  2. [SOLVED] Refresh UserForm after entering data in another userform
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2013, 10:34 AM
  3. Entering a formula with macro into cell
    By bobo1000 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2012, 09:03 AM
  4. Userform for entering date into cell F23
    By jamer02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2011, 12:59 PM
  5. Entering formula in cell using macro
    By Pingvinfan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2009, 04:48 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