Results 1 to 3 of 3

Cell1 = Cell 2 and Cell 2 = Cell1

Threaded View

  1. #1
    Registered User
    Join Date
    08-21-2014
    Location
    UK
    MS-Off Ver
    2013
    Posts
    1

    Question Cell1 = Cell 2 and Cell 2 = Cell1

    I have used this code with success in the past:-
    [#]Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("A1:A2")) Is Nothing Then
    If Target.Address = "$A$1" Then
    Range("A2").Value = Target.Value
    Else
    Range("A1").Value = Target.Value
    End If
    End If
    End Sub[#]
    I now have a spreadsheet with 10 worksheets. I want to be able to have say, square 'B2' the same an all sheets and be able to alter the value of 'B2' on any of the sheets? Any ideas. please.
    Last edited by wright1125; 08-24-2014 at 04:17 AM. Reason: i WAS TOLD TO PUT [#] around the code - Sorry!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 06-01-2014, 10:48 PM
  2. [SOLVED] If Cell1 < Cell2 then add 1 month or if Cell1 = blank then blank
    By robertmiller in forum Excel General
    Replies: 7
    Last Post: 06-27-2012, 03:41 PM
  3. Replies: 1
    Last Post: 07-27-2011, 08:33 AM
  4. Enter and update ValuesIn Cell1 Based On Values In Cell 2 And Vice Versa.
    By miroper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2010, 11:03 AM
  5. if cell1 has a number from 0 to 10, then cell2 = cell1*1.15
    By georgei in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-05-2007, 11:28 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