Extreme difficult task

tv9_rohith

Board Regular
Joined
Sep 1, 2011
Messages
96
Test : I have a text box in sheet 1

will insert one shape( Star , reclagle, circle ) to act as command button for clearing the data in Textbox1.

formula is :

TextBox1.Text = ""


how do we do this ?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Step 1: Create Shape
Step 2: Right-click "Insert Macro" (or something similar -- my excel is in Japanese)
Step 3: Add above code to the macro
Step 4: Ask an extremely difficult question
 
Upvote 0
not able to clear the data in the textbox 1.

I have assigned a macro to that its not happening.

Sub Oval1_Click()
TextBox1.Text = ""End Sub


and the error line is Sub Oval1_Click()
 
Upvote 0
Presuming TextBox1 resides on Sheet1, wherein 'Sheet1' is the worksheet's codename.

<font face=Courier New><SPAN style="color:#00007F">Option</SPAN> <SPAN style="color:#00007F">Explicit</SPAN><br>    <br><SPAN style="color:#00007F">Sub</SPAN> Oval1_Click()<br>    Sheet1.TextBox1.Value = vbNullString<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
Members
452,892
Latest member
yadavagiri

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