Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4172342
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:33:06+00:00 2026-05-21T00:33:06+00:00

I am struggling, wondering if there is any simple way to reference a cell

  • 0

I am struggling, wondering if there is any simple way to reference a cell from the current/active row.

i.e. – I have 2 sheets, one with lots of info on and the second I want to display info from the current/active row on Sheet 1.

So say row 5 was selected in Sheet 1. Then if you went to Sheet 2, all the info from row 5 would show on Sheet 2. Then if you selected row 8 on Sheet 1, the info on Sheet 2 would be updated to show only the info from row 8 on Sheet 1.

Any changes that you made on Sheet 2 would be reflected when you went back to Sheet 1.

Is there maybe a simple formula I could add to the cells on Sheet 2? Maybe something along the lines of:

cell A1 on sheet 2 have =sheet1(active_row.colum1) 

and then cell A2 on sheet 2 have =sheet1(active_row.colum2) 

etc, etc

I’ve managed to get it kind of working using a macro, but the only trouble is that when I alter the info on Sheet 2, it doesn’t update the info on Sheet 1. If there was a way to add this functionality to my code, that would be great.

This is the code I have so far:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myList
If Target.Address <> Target.EntireRow.Address Then Exit Sub
If Target.Rows.Count > 1 Then Exit Sub
myList = [{"B1","B2","B3","B4","B5","B6","B7","B8","B9","B10","B11","B12","B13","B14","B15"}] '<- adjust to your need
With Target.EntireRow
    For i = 1 To UBound(myList)
        Sheets("sheet2").Range(myList(i)).Value = .Cells(i).Value
    Next
End With
End Sub

Any suggestions? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T00:33:07+00:00Added an answer on May 21, 2026 at 12:33 am

    Yes, you can do this, but it’s a little bit complicated.

    You want the row selected on Sheet 1 to display on Sheet 2, and then have be able to edit Sheet 2 to automatically update Sheet 1.

    What you have to do is use the Selection event as you are, and copy the row to Sheet 2. Then you have to use the Activate event on Sheet 1 to copy the row back to Sheet 1. Please note that the following code assumes that Sheet 1 has no worksheet functions (formulas) in the cells, you could still do it, but you’d have to preserve the formulas and replace them.

    Sheet 1 Code:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    If Target.Address <> Target.EntireRow.Address Then Exit Sub
    If Target.Rows.Count > 1 Then Exit Sub
    
    Target.EntireRow.Copy
    Sheets("Sheet2").Activate
    Sheets("Sheet2").Range("A1") = Target.Row
    Sheets("Sheet2").Rows(2).PasteSpecial (xlPasteValues)
    
    End Sub
    

    Sheet 2 Code:

    Private Sub Worksheet_Deactivate()
    
    If Sheets("Sheet2").Range("A1") > 0 Then
      Sheets("Sheet2").Rows(2).Copy
      Sheets("Sheet1").Activate
      ActiveSheet.Rows(Sheets("Sheet2").Range("A1")).EntireRow.PasteSpecial (xlPasteValues)
      Sheets("Sheet2").UsedRange.ClearContents
    End If
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm struggling getting some unit tests running and wondering if anyone might have anything
Im struggling with this one. I have a list of items and on a
I was wondering if there is any good choice of rails plugin for facebook
I was wondering if there is a programmatically way to install zen coding plugin.
I've been struggling with this for a while and I was wondering if there
I know this is a very simple question but I have been struggling with
I'm struggling to find much information on this subject so I'm wondering if any
I have been struggling to get Maven2 to cooperate with me, and was wondering
I've been struggling with this one SQL query requirement today that I was wondering
I´m struggling to understand this concept: I have a fixed size definition: (from http://msdn.microsoft.com/pt-br/library/aa931918.aspx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.