+ Reply to Thread
Results 1 to 3 of 3

Display contents of multiple active cells in another cell?

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    33

    Display contents of multiple active cells in another cell?

    I have a piece of code that allows me to display the contents of an active cell in another cell. However I can only view one cell at a time, if I click on multiple cells it still only displays the first cell. Is there a way to be able to display the contents of two or more cells at once?

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Range("G24").Value = ActiveCell.Value
    End Sub

    Any help would be much appreciated.

    Thanks
    Last edited by mtsykes28; 06-14-2012 at 11:33 AM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Display contents of multiple active cells in another cell?

    mtsykes28,

    Welcome to the forum! In the future, please wrap your code in code tags (link in my sig for how)
    Give this a try:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

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

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Display contents of multiple active cells in another cell?

    tigeravatar

    Thank you very much. It works a treat. Sorry for the lack of code tags. I will remember to include them in the future.

+ 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