What am i missing here?

James

Active Member
Joined
Feb 17, 2002
Messages
327
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
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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 ??

<pre/>
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
</pre>
 
Upvote 0

Forum statistics

Threads
1,213,563
Messages
6,114,332
Members
448,566
Latest member
Nickdozaj

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top