keyboard shortcut to edit cell contents

M

Marcowicz

Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I am used to Windows Excel where you can edit cell contents using the F2 key and would very much like to use this shortcut in Mac Excel 2008. I understand that Control+u does this in Mac Excel, BUT I want to be able to do it one keystroke not two.

I also understand there was a similar questioned posted about 3 years ago, and that a workaround was posted using a Visual Basic macro. However, the instructions provided do not work for Mac Excel 2008.

Any help out there? Thanks much.
 
J

John McGhie

Look up "Customize" in the Excel Help. You can assign keystrokes anyway you
like, within limits. One of those limits is that Mac OS X is rather fond of
"stealing" keystrokes, so you may have to disable the keystroke you want in
the operating system before you can use it in Excel.


Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Intel I am
used to Windows Excel where you can edit cell contents using the F2 key and
would very much like to use this shortcut in Mac Excel 2008. I understand
that Control+u does this in Mac Excel, BUT I want to be able to do it one
keystroke not two.

I also understand there was a similar questioned posted about 3 years ago, and
that a workaround was posted using a Visual Basic macro. However, the
instructions provided do not work for Mac Excel 2008.

Any help out there? Thanks much.

This email is my business email -- Please do not email me about forum
matters unless you intend to pay!

--

John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:[email protected]
 
C

CyberTaz

Yeah, but nobody seems to know what the specific command is for "edit in
cell" & if you type Control+U (as though assigning it) to find out what it
is is already assigned to it doesn't identify the command. The message
simply reads "Currently assigned to: ". I've gone through the
entire list of All Commands more than a dozen times & there's nothing which
even approximates that function.

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
J

JE McGimpsey

CyberTaz said:
Yeah, but nobody seems to know what the specific command is for "edit in
cell" & if you type Control+U (as though assigning it) to find out what it
is is already assigned to it doesn't identify the command. The message
simply reads "Currently assigned to: ". I've gone through the
entire list of All Commands more than a dozen times & there's nothing which
even approximates that function.

It's not that "nobody seems to know", it's that entering edit mode
*isn't* an Excel command, any more than "exit edit mode" is.

Excel commands operate on objects. An entry mode isn't an object. That's
why, on previous versions, I needed to use the kludge at

http://www.mcgimpsey.com/macoffice/excel/f2.html

to assign edit mode to F2. I haven't tried to see if one could write an
equivalent applescript for XL08.
 
C

CyberTaz

It's not that "nobody seems to know", it's that entering edit mode
*isn't* an Excel command, any more than "exit edit mode" is.

Excel commands operate on objects. An entry mode isn't an object. That's
why, on previous versions, I needed to use the kludge at

http://www.mcgimpsey.com/macoffice/excel/f2.html

to assign edit mode to F2. I haven't tried to see if one could write an
equivalent applescript for XL08.

Hi John;

No challenge intended but just seeking information. I've had dozens of
people tell me it 'can't' be done but nobody has been able to explain why:

Based on my limited knowledge I find it hard to understand why the 'entry
mode' can have a keystroke assigned to it but can't be made available for
the user to customize. Since the assigned keystroke is;

Edit the active cell CONTROL+U

Why shouldn't another keystroke be able to be assigned instead of/in
addition to that one?

I'm also unclear as to the 'object' distinction ‹ The cells of a spreadsheet
(AFAIK) are Text Box display control objects no different than drawn text
box objects or other shapes. They're simply connected to one another to form
a tabular grid. If a menu command [specifically; Edit Text] can be available
for adding/entering content into drawn shapes I simply don't know enough to
understand why a similar command can't be used for a cell... And if the
command can be used a stroke should be assignable as well.

Make no mistake, Control+U is fine as far as I'm concerned, and I understand
the bit about F2 being assigned differently on Macs. I'd just like to have a
better answer to give others because this issue comes up quite frequently.
It doesn't have to be a detailed technical explanation, but any insight you
can offer would be greatly appreciated.

Regards |:>)
Bob Jones
[MVP] Office:Mac
 
J

JE McGimpsey

Comments in-line. This is my interpretation only - I may be completely
wrong about Excel's inner workings, but I think my explanation is
self-consistent.

CyberTaz said:
No challenge intended but just seeking information. I've had dozens of
people tell me it 'can't' be done but nobody has been able to explain why:

Based on my limited knowledge I find it hard to understand why the 'entry
mode' can have a keystroke assigned to it but can't be made available for
the user to customize. Since the assigned keystroke is;

Edit the active cell CONTROL+U

Why shouldn't another keystroke be able to be assigned instead of/in
addition to that one?

There's no inherent reason that I know of - MS could have come up with a
command that enters Edit Mode, and made it assignable via the UI. They
just didn't.

Edit Mode itself isn't a command - it's a state. In that state, many,
but not all, controls are disabled. Others (e.g., arrow keys, CMD-b)
have a different scope of operation.

The Format Painter controls also enter a state - and there *is* an Excel
command that causes Excel to enter that state. And that command can be
assigned a custom Keyboard shortcut.

The same thing presumably could have been done for Edit Mode.
I'm also unclear as to the 'object' distinction ‹ The cells of a spreadsheet
(AFAIK) are Text Box display control objects no different than drawn text
box objects or other shapes.

Not really. In the Excel Document Object Model (DOM), cells are a type
of Range Object that have properties such as Value (the stored value),
Text (the displayed value), Formula (self-explanatory), Row and Column,
Top and Left, Height and Width, Hyperlink, Style, Interior, Font, etc.

Some of these properties are the same as with Shape objects, such as
text boxes and other drawn shapes. But there are significant differences
in properties and methods.

Edit Mode is also different for cells, in that the result of the entry
when Return (or tab, etc) is hit is sent to XL's input parser to be
interpreted and a value calculated.
They're simply connected to one another to form a tabular grid.

Actually, that's only the product of the drawing engine. There's no
"table-ness" to cells' connections. They have linear connections (Next,
Previous) and Calculational connections (Dependents, Precedents), but
the grid is purely a visual meta-phor.
If a menu command [specifically; Edit Text] can be available
for adding/entering content into drawn shapes I simply don't know enough to
understand why a similar command can't be used for a cell... And if the
command can be used a stroke should be assignable as well.

Does assigning a key command to "Edit Text..." do anything for you in
the UI? I can't see it changing anything when I have a shape (other
than Word Art) selected. And when I put the command on a toolbar, I
can't find any conditions under which it's active except when Word Art
is selected, and then it opens a dialog box.

As far as "Edit Text" (sans ellipsis), I think it only appears in the
pop-up contextual menu when a shape is selected, and then its function
is to change the selection from the shape to the Text Frame of the
Shape. But I can't seem to assign a keyboard shortcut to it via the U/I.
I can, using the same method I used to assign F2 (i.e., the
Application.OnKey method).
Make no mistake, Control+U is fine as far as I'm concerned, and I understand
the bit about F2 being assigned differently on Macs. I'd just like to have a
better answer to give others because this issue comes up quite frequently.
It doesn't have to be a detailed technical explanation, but any insight you
can offer would be greatly appreciated.

Not sure any of the above is ultimately useful...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top