Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Stuart" wrote in message ... Would be grateful for help with a few simple questions, please: 1. If Not IsEmpty(.Range("F65536").End(xlUp) _ .Offset(-1, -4)) Then is fine, but "F" is hard-coded. If it were to be the variable '£Col', how can I change the code so as to get back to that "B" cell, please? .Range("B" & ......) ? If Not IsEmpty(.Cells(Rows.Count, £Col).End(xlUp) _ .Offset(-1, 2 - £Col)) Then Similarly: 2 For Each Cell In .Range("H2", "J" & LastRow) _ .SpecialCells(xlConstants) is fine, but how to replace "H" with '£Col + 2' and therefore "J" becoming '£Col + 4' ? For Each Cell In .Range(.Cells(2, £Col + 2), .Cells(LastRow, £Col + 4)) _ .SpecialCells(xlConstants) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple Formula Questions (I hope) | New Users to Excel | |||
Charting - 2 questions simple scale and use of F11 | New Users to Excel | |||
Questions should be simple please help | Excel Worksheet Functions | |||
Newby questions - simple (I hope) | Excel Discussion (Misc queries) | |||
Simple VB and Excel questions | Excel Programming |