+ Reply to Thread
Results 1 to 3 of 3

Autocopy Value of a cell into another worksheet cell

Hybrid View

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Autocopy Value of a cell into another worksheet cell

    Hi,

    I have attached a template below.

    If you click the button "Insert Store" in sheet 1. It creates a new row and manually need to enter Store Name in column B. Eg B6 you Enter "Melbourne"

    At the same time, a column will be copied and created in sheet 2. Here the columns start from F and you can see F4 is named as Store Name. I want this to be changed as the name entered in B6 - Melbourne.

    When the button is clicked again, B7 will be created and when user name it, i want G4 to change the Store name to that. this should happen every time a user click that button.

    Any help is appreciated.
    Attached Files Attached Files

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

    Re: Autocopy Value of a cell into another worksheet cell

    Right Click on the sheet name at the bottom of excel

    select view code

    paste this code

    close visual basic.

    Ready for you.


    
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Or Target.Row < 5 Or Target.Column <> 3 Then Exit Sub
    Sheets("Sheet2").Cells(4, Target.Row).Value = Target.Value
    End Sub
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Autocopy Value of a cell into another worksheet cell

    Thank you. This is exactly what I wanted to do. You are the best

+ 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. Replies: 6
    Last Post: 11-24-2013, 10:36 PM
  2. Autocopy the first cell with more than 30 characters to a different sheet?
    By Excelnoobie100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2012, 05:20 AM
  3. [SOLVED] autocopy lowest date from other cells to another cell in the same worksheet
    By RogerRangeRover in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2012, 06:39 AM
  4. Autocopy Cell From Previously Sheet?
    By MikiMix in forum Excel General
    Replies: 2
    Last Post: 01-17-2007, 11:31 AM
  5. Replies: 1
    Last Post: 07-21-2005, 12:05 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