+ Reply to Thread
Results 1 to 8 of 8

Convert Code from using Userbox to Userform

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Convert Code from using Userbox to Userform

    Hi all,

    I'm trying to convert some code to run from a userbox to run from a userform
    So far everything that I've tried I'm getting an error for something.

    Directly below is the code I'm running initally.
    (Good code )

    Please Login or Register  to view this content.
    This is the codec coverted code that failing and I have yet to get it to work.

    Please Login or Register  to view this content.
    the following give a "mismatch" error
    Please Login or Register  to view this content.
    The following changes tell me an object is required.
    Please Login or Register  to view this content.
    If anyone can correct this that would be great.

    Thanks,

    BDB
    Last edited by bdb1974; 10-16-2009 at 12:46 PM.

  2. #2
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Convert Code from using Userbox to Userform

    This is the closest to getting something working.
    It runs w/o errors, and returns the value in cell "O23"
    What I need it to do is use the range thats inside the cell.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Convert Code from using Userbox to Userform

    I need to somehow change the String value to a Range value.

    I've tried this but is doesn't work either.



    Please Login or Register  to view this content.
    I don't know why this is so difficult.
    What's the difference of using a selected range placed into a userbox(Application.InputBox) differ from a userform (UserForm1.RefEdit1.Text)?
    Raddress = Application.InputBox vs Raddress = UserForm1.RefEdit1.Text ???

    BDB
    Last edited by bdb1974; 10-16-2009 at 12:06 PM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Convert Code from using Userbox to Userform

    Try this:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Convert Code from using Userbox to Userform

    What's a usebox?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Convert Code from using Userbox to Userform

    JBeaucaire,


    Please Login or Register  to view this content.
    That's it.

    Thankyou sooo much.

    BDB

  7. #7
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Convert Code from using Userbox to Userform

    Roy
    My use of words was wrong.
    It is a InputBox

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Convert Code from using Userbox to Userform

    Can you edit the Title please

+ 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