Jump to cell
Closed
rajeev
-
Oct 2, 2011 at 02:24 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Oct 3, 2011 at 10:49 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Oct 3, 2011 at 10:49 PM
2 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 3, 2011 at 05:52 AM
Oct 3, 2011 at 05:52 AM
right click the sheet tab and click view code and copy paste this event code
save the file and then enter any number in column A and see what happens
save the file and then enter any number in column A and see what happens
Private Sub Worksheet_Change(ByVal Target As Range) Dim j As Long, k As Long, m If Target.Column <> 1 Then Exit Sub Application.EnableEvents = False j = Target.Value Range("B" & j) = j Application.EnableEvents = True End Sub
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Oct 3, 2011 at 10:49 PM
Oct 3, 2011 at 10:49 PM
try this modified event code. as explained right click tab and click view code and park it there.
your item 3. regarding the first row blank can you enter only in row 2 or above. Does it require a code?( you can have if required)
try various experiments. If this had been told in the first message itself it would have avoided modification. In your message the cell referred to is A1 . perhaps you require first row to be blank
Private Sub Worksheet_Change(ByVal Target As Range) Dim j As Long, k As Long, m 'If Target.Column <> 1 Then Exit Sub If Target.Column Mod 2 = 0 Then Exit Sub If Target.Column > 100 Then Exit Sub If Len(Target) = 0 Then Exit Sub Application.EnableEvents = False j = Target.Value Cells(j, Target.Column + 1) = j Application.EnableEvents = True End Sub
your item 3. regarding the first row blank can you enter only in row 2 or above. Does it require a code?( you can have if required)
try various experiments. If this had been told in the first message itself it would have avoided modification. In your message the cell referred to is A1 . perhaps you require first row to be blank
Oct 3, 2011 at 12:12 PM
1- when ever i delete the data on the sheet then Run-Time Error 13 Type mismatch comes. and then sheet does not response according to my need. I tried to debug it but failed.
2- secondly i want 50 sets of suuch columns in the same way i.e., A&B, C&D,E&F and so on. Set can be made in another way i.e., 50 on one side (in which i have to type ) and 50 columns on another side( i.e., in which data will go)
3- I want upper most row empty through out the sheet