+ Reply to Thread
Results 1 to 4 of 4

How do I manually edit acell during an excel Macro

  1. #1
    Registered User
    Join Date
    04-03-2016
    Location
    george RSA
    MS-Off Ver
    2007
    Posts
    3

    How do I manually edit acell during an excel Macro

    I want to do this:-

    1. Copy named range "Date" to active cell.
    2. Enter edit mode at active cell (Like pressing F2).
    3. Move pointer 1 character Left.
    4. Pause Macro to allow manual edit of active cell contents.
    5. Resume Macro when "ENTER" is pressed.
    6. Copy active cell contents to named range "Date".
    7. End sub.

    Any ideas welcome.

    Roger Mortimer.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How do I manually edit acell during an excel Macro

    Roger

    Code can't be executed when in Edit mode.

    What is it you want to enter in the cell anyway?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-03-2016
    Location
    george RSA
    MS-Off Ver
    2007
    Posts
    3

    Re: How do I manually edit acell during an excel Macro

    I want to edit a date ie. 6/04/2016 without the bother of typing the whole date. This was easy in Lotus 123.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,443

    Re: How do I manually edit acell during an excel Macro

    If you just type 6/4 and press Enter, you get a date with the current year as default. For example, 6/4 gives 06/04/2016. You need the cell formatted as Date first or you might not get the format you want. Formatted as General, I got 06-Apr.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formatting the excel file by manually recording macro
    By rhyne23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2015, 08:02 AM
  2. Replies: 7
    Last Post: 10-30-2015, 05:08 AM
  3. [SOLVED] Edit File Manually while Macro is running.
    By lifeankit in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2014, 05:52 AM
  4. Replies: 0
    Last Post: 11-06-2013, 06:10 PM
  5. Formatting of acell
    By Geordie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 06:44 AM
  6. Replies: 0
    Last Post: 06-04-2012, 07:21 AM
  7. [SOLVED] Web query in macro doesn't work until you manually edit it
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2005, 02:06 PM

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