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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,213,536
Messages
6,114,210
Members
448,554
Latest member
Gleisner2

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