Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello there,
I have a piece of VBA code that I have been using in a mock up excel system for my A levels the code places the cell number + and offset of 113 into the cell you click on in coloumb B. Sort of working like an auto number in the next cell. But i dont want it to do this for rows 1 -5 is there anyway of doing this? Heres the code; Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) Dim RowOffset As Long Dim IndexCol As String RowOffset = 113 IndexCol = "B" Intersect(ActiveCell.EntireRow, Columns(IndexCol)).Value = ActiveCell.Row + RowOffset End Sub Any help would be greatly appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Exception from HRESULT: 0x800A03EC - COM Exception Unhandled | Excel Programming | |||
Exception in Activating Subscription Cells | Excel Discussion (Misc queries) | |||
"Exception in Activating Subscription Cells" | Excel Discussion (Misc queries) | |||
Exception in Activating Subscription cells | Excel Discussion (Misc queries) | |||
can a sheet be locked, with exception of some cells in it | Excel Discussion (Misc queries) |