macro to pause, enter a name in the find box, and continue

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
821
Office Version
  1. 365
Platform
  1. Windows
Hi

I’m trying to write a macro that will unfreeze the screen,
Then bring up the “find” box.
Pause to enter a name,
Hit next, which will take the cursor to that name,
Close the box,
And change the font color to red.

I have to unfreeze the screen first because I have names from B2:B400 separated by month.
On opening the sheet, the screen finds the current month, freezes one line below and scrolls it to the top.

If I use “find”, the result will not go above the freeze.
What I do now, is unfreeze the screen and find the name.

The next time i open the sheet, the open macro will find the current month....etc.

I don’t need a macro to freeze the screen again after using the 'find" box because I use the "open" macro if I want to do something else to the sheet
I also have B2:B400 change back to the black font before using my save and close macro

I use custom macros on the Ribbon Bar

VBA Code:
Sub tofindname()
ActiveWindow.FreezePanes = False

mike
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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