+ Reply to Thread
Results 1 to 2 of 2

need help with moving cells to another column

Hybrid View

  1. #1
    Registered User
    Join Date
    10-22-2017
    Location
    Jacksonville, FL
    MS-Off Ver
    365
    Posts
    73

    need help with moving cells to another column

    Situation:

    I have a date in cell B:1. When I enter a new date in B:1, i want the original date of cell B:1 moved to cell A:1. Is there a formula for this?

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: need help with moving cells to another column

    You will need a macro.

    Right Click on your sheet name at the bottom of excel and select view code.

    Paste this into the module that opens and close it.

    
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address <> "$B$1" Then Exit Sub
    Application.EnableEvents = False
    t = Range("B1").Value
    Application.Undo
    Range("A1").Value = Range("B1").Value
    Range("B1").Value = t
    Application.EnableEvents = True
    End Sub
    Last edited by mehmetcik; 11-09-2017 at 08:04 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. Help Moving Cells with specific text to new column
    By Mulezsti in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-03-2015, 11:58 PM
  2. Replies: 4
    Last Post: 01-07-2015, 08:29 PM
  3. Moving Certain Cells To a New Column
    By Katiee in forum Excel General
    Replies: 3
    Last Post: 04-25-2014, 09:21 AM
  4. [SOLVED] Moving cells from one column into multiple columns
    By RetroJK in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2013, 09:53 PM
  5. Moving a group of cells based on its value in a column to a different column
    By gabrielgaudenciorego in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2013, 09:25 AM
  6. Moving All Cells Into One Column
    By flamins in forum Excel General
    Replies: 5
    Last Post: 10-25-2006, 11:21 AM
  7. Moving between a column's cells
    By LoveCandle in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-10-2005, 05:40 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