+ Reply to Thread
Results 1 to 3 of 3

VALUE# error from a form to a cell

  1. #1
    Registered User
    Join Date
    10-24-2005
    Posts
    55

    VALUE# error from a form to a cell

    Hi

    I have a user form with a command button that sends the inputted text in the user form to a cell on a worksheet; this cell in turn is linked to a different text box on the sheet

    I am inputting the text below and when I send this to the cell a VALUE# appears in the cell and I can not see in the text what could be causing the problem

    3 No. S32 Roller shutter. Electrically operated complete with casing.
    No Switches required
    1 No. 1152mm o/a width x 1736mm o/a drop
    Screen colour: Cream, Case guides and bottom rail colour: White
    1 No. 1195mm o/a width x 1712mm o/a drop
    Screen Colour: Natural, case guides and bottom rail colour: Grey


    Command button code
    If ComboBox1.Value = "Please select Product" Then
    MsgBox "--------------Please select Product--------------"
    Exit Sub
    End If
    Worksheets("Sheet3").Range("b17") = TextBox1

    Any ideas?

    Many thanks

    Raw

  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    You might want to refer to ComboBox1 instead of TextBox1.

    Scott

  3. #3
    Registered User
    Join Date
    10-24-2005
    Posts
    55
    Hi
    I have one Combobox on the user form and a textbox, The Combox is used to select the different products we do and then you enter the description of the product in the textbox

    When I enter text (below) this goes in to the cell fine. I do not get the VALUE# error

    Test


    Test


    Test


    Test


    Worksheets("Sheet3").Range("b17") = TextBox1 This is the code i use on the command button to send the info from the user form text box to the cell on sheet3

    Thanks
    Last edited by raw; 01-15-2007 at 06:07 PM.

+ 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