+ Reply to Thread
Results 1 to 2 of 2

data position

  1. #1
    Registered User
    Join Date
    05-29-2006
    Posts
    75

    data position

    how can i replace data in cell A2 with cell B2 and vice versa.

  2. #2
    Forum Contributor
    Join Date
    11-11-2005
    Posts
    267
    Sub SwapData()
    Dim num1 as Long, num2 as Long

    num1=Range("a2").value
    num2=Range("b2").value

    Range("a2").value=num2
    Range("b2").value=num1

    End Sub
    HTH
    Myles

    ...constantly looking for the smoother pebble while the whole ocean of truth lies before me.

+ Reply to Thread

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