+ Reply to Thread
Results 1 to 4 of 4

VBA for edit mode

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    VBA for edit mode

    What is the VBA to select a cell in the Edit mode.

    For example same as Selecting cell A1 then F2.

    Thanks a lot. mikeburg

  2. #2
    Registered User
    Join Date
    01-15-2008
    Posts
    16

    Can you clarify your question?

    Do you mean the equivalent of selecting "A1" and pressing [F2]? If this is so you may want to check the InStr or Left/Right functions.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612
    I'm not sure what you're after; but, if you are trying to select a specific cell via VB then there are several ways. For example, to select cell D3, you can use
    Range(D3").Select
    or
    Cells(3,4).Select
    ,
    There are other ways but you would have to give more details of what you're after.
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    Thank you for the reply.

    I am wanting to put VBA at the end of a procedure I have ran that effectively goes into the edit mode (F2) of a text string that already exists in cell A3. For example, I may have in cell A3, a text string like below that I am editing the last word to a different word:

    In cell A3:
    "Put something into the inventory of Automotive"

    to

    "Put something into the inventory of Appliances"

    without having to retype the whole string.

    Now I select A3 and hit the F2, delete the characters or word & type the new characters or word.

    I realize only one keystroke will be saved (F2), but if I had the VBA that goes into the edit mode, I can use it in a lot of other editing we do.

    Thanks for all your help. mikeburg

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1