I have NIL knowledge regarding VBA. Require help for below.
http://chandoo.org/wp/2011/04/07/show-details-on-demand-in-excel/
After reading above post of Chandoo, I am trying to modify the below Selection macro code.
In chandoo's sample excelsheet given in above link, when you select on items list, values in E28 change from 1 to 9.
I have data from D10:H17 & want these numbers to continue till 40.(D10:H17 contains 40 cells)
Like if I select D10 then 1 till D17 this numbers will go 8 & now when I select E10 number should update as 9.
I hope this post make sense.
Macro Code given in chandoo's sheet-
Sub UpdateAfterAction()
Dim topRow As Integer
topRow = Range("rngReviews").Cells(1, 1).Row
[valSelItem] = ActiveCell.Row() - topRow + 1
End Sub
http://chandoo.org/wp/2011/04/07/show-details-on-demand-in-excel/
After reading above post of Chandoo, I am trying to modify the below Selection macro code.
In chandoo's sample excelsheet given in above link, when you select on items list, values in E28 change from 1 to 9.
I have data from D10:H17 & want these numbers to continue till 40.(D10:H17 contains 40 cells)
Like if I select D10 then 1 till D17 this numbers will go 8 & now when I select E10 number should update as 9.
I hope this post make sense.
Macro Code given in chandoo's sheet-
Sub UpdateAfterAction()
Dim topRow As Integer
topRow = Range("rngReviews").Cells(1, 1).Row
[valSelItem] = ActiveCell.Row() - topRow + 1
End Sub