+ Reply to Thread
Results 1 to 7 of 7

Get value of formula into userform textbox

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Get value of formula into userform textbox

    Hi,

    The bellow are the few lines of code from a long subroutine

    Please Login or Register  to view this content.
    Means I am getting value from a closed workbook's Sheet "Company" and Cell B4 in activewrokbooks's F2 and then loading that value into txtdomain. Any way to get rid of the bridge (F2) and get the value directly into txtDomain?
    Teach me Excel VBA

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,568

    Re: Get value of formula into userform textbox

    Untested
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Get value of formula into userform textbox

    I do have a sheet named "Company" in the closed workbook but still error subscript out of range.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,568

    Re: Get value of formula into userform textbox

    subscript out of range.
    ?
    It should be other part of your code, I guess.

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Get value of formula into userform textbox

    Opps sorry for the inconvenience . My sheet name had some spelling mistake . but now the update values window is poping up.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,568

    Re: Get value of formula into userform textbox

    That means either file name/path name/ sheet name is still wrong.

  7. #7
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Get value of formula into userform textbox

    Thanks @sir jindon the problem solved by disabling
    Please Login or Register  to view this content.
    much much appreciated the response within 4 minutes

+ 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. Formula Editor/Bar in UserForm TextBox?
    By xtinct2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2017, 05:58 PM
  2. Replies: 23
    Last Post: 07-12-2014, 07:09 PM
  3. Userform textbox value with formula creates a result in excel
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2013, 05:21 PM
  4. Userform TextBox.Value inside Formula, in VBA code
    By schneij in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 06:03 PM
  5. Replies: 3
    Last Post: 05-07-2012, 09:46 PM
  6. Userform Textbox Formula
    By techteam in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-29-2011, 06:06 PM
  7. Userform Textbox updating a another userform textbox (im stuck!!)
    By wapwap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2011, 02:56 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