Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: What am i missing here?

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Huntington Beach, CA USA
    Posts
    327
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Private Sub CommandButton2_Click()
    Application.ScreeUpdating = False
    Application.Goto Reference:=Range("A84"), _
    Scroll:=True
    [W94].Value = [G86*B86] + blah, blah, blah
    [cbx1] = Empty
    [databox1] = Empty
    Range("B86").Select
    Application.Screen.Updating = True
    End Sub

    I know in the above code i said [databox1] =
    Empty, but what i am now trying to "fire off"
    is [databox1] = [cbx1]?

    databox1 is a textbox & cbx1 is a listbox

    Any ideas?

    James

  2. #2
    MrExcel MVP Ivan F Moala's Avatar
    Join Date
    Feb 2002
    Location
    Auckland, New Zealand
    Posts
    4,209
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-21 19:44, James wrote:
    Private Sub CommandButton2_Click()
    Application.ScreeUpdating = False
    Application.Goto Reference:=Range("A84"), _
    Scroll:=True
    [W94].Value = [G86*B86] + blah, blah, blah
    [cbx1] = Empty
    [databox1] = Empty
    Range("B86").Select
    Application.Screen.Updating = True
    End Sub

    I know in the above code i said [databox1] =
    Empty, but what i am now trying to "fire off"
    is [databox1] = [cbx1]?

    databox1 is a textbox & cbx1 is a listbox

    Any ideas?

    James
    Hi James
    Just a few things.....
    1) Was this code copied from your orig.
    as there are a few typos.
    eg Application.ScreeUpdating = False
    2) Following will help ??


    Private Sub CommandButton1_Click()
    Application.ScreenUpdating = False
    Application.Goto Reference:=Range("A84"), _
    Scroll:=True
    [W94].Value = [G86*B86] + blah, blah, blah
    '[cbx1] = Empty
    '[databox1] = Empty

    [databox1] = cbx1.Text
    Range("B86").Select
    Application.ScreenUpdating = True
    End Sub



    Kind Regards,
    Ivan F Moala From the City of Sails

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •