Can I put the [F2] Function in a macro?

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
823
After my macro runs, I would like to have the cursor ready to add
onto the cell contents just as if I pressed the [F2] function button.
Can this be done?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Most salty dogs are rum soaked

In my case Salty-dog doesn't refer to a sailor (Google it) and gin is definitely my preference (as Richard Schollar who created my subtitle knows).

Thanks for the feedback. In general SendKeys should be avoided (it is flaky) but I cannot see how this example would fail.
 
Upvote 0
In my case Salty-dog doesn't refer to a sailor (Google it) and gin is definitely my preference (as Richard Schollar who created my subtitle knows)..

Restaurant in Jersey, crisps "that bite back", ****tail of vodka and grapefruit juice, album by the Rock band Procol Harum...

Any of these? Come on Peter, I need to know!
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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