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

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.

craig.penny

Well-known Member
Joined
May 8, 2009
Messages
656
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,191,165
Messages
5,985,034
Members
439,935
Latest member
Monty238

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
Top