Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there a VBA equivalent to doing this..
select a cell F2 into Edit mode - and Press enter Key Is there a VBA Eqiv? If so, what code line(s)? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It sounds like you may be trying to emulate keystrokes in VBA, which
is possible to an extent. When it comes to editting a text string or formula there are better ways to do it, such as MID, LEFT, RIGHT, etc. Please give an example of what you're trying to do, with "before" and "after". Also, please give an idea of how standardized the data is, if any- along the lines of "the area code is always in parentheses" or "the string length always varies". Dave O Eschew obfuscation |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Let's say I've just formatted a true number 123 as text (in Cell A1).
Before it was right justified. Afterwards it is left justified. But I need to "refresh it by doing the F2, Enter on cell A1. With a Macro (VBA) assigned to a button I would just have to click the button. "Dave O" wrote in message ... It sounds like you may be trying to emulate keystrokes in VBA, which is possible to an extent. When it comes to editting a text string or formula there are better ways to do it, such as MID, LEFT, RIGHT, etc. Please give an example of what you're trying to do, with "before" and "after". Also, please give an idea of how standardized the data is, if any- along the lines of "the area code is always in parentheses" or "the string length always varies". Dave O Eschew obfuscation |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How about
Sub EnterSomething() Dim R As Range For Each R In Worksheets("Sheet1").Range("A1:A10") ' or For each R in Selection R = R.Value Next R End Sub HTH, JP On Dec 20, 2:09 pm, Jim May wrote: Is there a VBA equivalent to doing this.. select a cell F2 into Edit mode - and Press enter Key Is there a VBA Eqiv? If so, what code line(s)? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Enter multiple numbers in a cell so total shows when enter keypres | Excel Worksheet Functions | |||
How to enter or edit data to multiple worksheets on different ce | Excel Worksheet Functions | |||
F2 edit cells - new info disappears when I hit enter | Excel Discussion (Misc queries) | |||
Make "Edit" mode default, rather than "Enter"? | Excel Discussion (Misc queries) | |||
Why can't I edit my excel document? Edit buttons shaded. | New Users to Excel |