Highlighted Text in Formula - Actions

Nugget

New Member
Joined
Feb 2, 2009
Messages
25
Hi all,
If I highlight a part of a formula and press F4 it will toggle through the absolute/relative references. OK, np.

Where can I pickup the highlighted region to do "other" things with it? For starters, highlight part of a formula press a shortcut key and have it add parenthesis around the highlighted text?


-- removed inline image ---


Regards,
Mon
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
One thing you can do is highlight part of a formula and press F9 to see the result of that part of the formula. Having done so ..
- press Esc to return the formula to how it was, or
- press Enter to permanently replace the highlighted part with the F9 result.

BTW, the link in your post does not work for me.
 
Upvote 0
Thank you, I am aware of this functionality. What I would like to do is add NEW abilities.
Sorry about the link, here is what I was trying to show.

=A1*B2+C1
=A1*B2+C1 ==> B2+C1 would be highlighted and after "new keystroke" would become
=A1*(B2+C1)
 
Upvote 0
Actually now that I think about it, what I need to know how to pick up what is highlighted. I was thinking something along the lines of

Code:
private:
   void textBox1_Enter(System::Object ^ sender,
      System::EventArgs ^ e) {
   if (!System::String::IsNullOrEmpty(textBox1->Text))
   {
      textBox1->SelectionStart = 0;
      textBox1->SelectionLength = textBox1->Text->Length;
   }
}
OR ACTUALLY!!! Just like the "Wrap
Code:
 around selected text" in this reply box!! I was just envisioning if I could pick up what was highlighted I could do whatever else I needed as well.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,700
Members
452,938
Latest member
babeneker

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