Do I have to do it for different sheets in the same workbook?
Do I have to do it for different sheets in the same workbook?
I believe that is correct.
You can try this and no need to replicate the code just follow the steps:
- Open excel
- Press Alt + F11
- In the right side you can see Project explore if not press Ctrl + R
- Double click on ThisWorkbook
- Paste below code
Code:Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) Range("a1").Value = ActiveCell.Value End Sub![]()
Thanks. Also I used the sheet name so that I can get the desired result, whereever the active cell is cell A1 of sheet1 will show the content.
Bookmarks