input text on sheet - macro

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
Hello

in my sheet1, i would like cell F5 to say "no sort"

i have a sort button that when clicked, tells the user in cell F5 i.e. Sorted by: Name

so when the user has not selected anything i.e. opened the workbook etc, i would for it to say "no sort"

any ideas? thxs
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Are you asking for a method to put "no sort" in F5 of "sheet1" every time the workbook is opened?

If that's accurate, this is what you need:

Code:
Private Sub Workbook_Open()
 
      ThisWorkbook.Sheets("Sheet1").Range("F5") = "No Sort"
      
End Sub

That code needs to be in the ThisWorkbook code module.
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,573
Members
449,089
Latest member
Motoracer88

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