Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Several simple questions


"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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Formula Questions (I hope) Logues New Users to Excel 5 May 28th 09 05:36 AM
Charting - 2 questions simple scale and use of F11 SteveW New Users to Excel 2 July 3rd 06 02:47 PM
Questions should be simple please help babiigirl Excel Worksheet Functions 3 June 14th 06 07:24 PM
Newby questions - simple (I hope) Nooby Excel Discussion (Misc queries) 1 March 8th 06 05:04 PM
Simple VB and Excel questions Kevin Excel Programming 1 August 5th 03 08:40 PM


All times are GMT +1. The time now is 11:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"