Results 1 to 4 of 4

moving value to same cell different sheet

Threaded View

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    moving value to same cell different sheet

    When I change a value within a range on sheet2 (where I have this code) I want the value to appear in that same location in sheet1. Here's my code
    Option Explicit
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim rowval As Integer, colval As Integer
    
    If Intersect(Target, Range("A1:L5")) Then
        rowval = Target.Row
        colval = Target.Column
        Worksheets("sheet1").Range(Cells(rowval, colval)) = Target
    End If
    
    End Sub
    Thanks in advance!
    Last edited by ChemistB; 09-10-2010 at 03:50 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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