Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default selecting a row by header row in VBA

I know this code probably isn't the most efficient, but i'm not worrie
about that, since it mostly does what i need. At the end, for th
underlined, i needed to select a row, by the header row instead of th
distance from the active cell.

Sub McStatTol()
' Keyboard Shortcut: Ctrl+Shift+r
Range("AK8").Select
Do
ActiveCell.Clear
If Not ActiveCell.Offset(0, -1) & ActiveCell.Offset(0, -2) = "
Then
If ActiveCell.Offset(0, -2) ActiveCell.Offset(0, -1) Then
ActiveCell.Value = ActiveCell.Offset(0, -2)
Else
ActiveCell.Value = ActiveCell.Offset(0, -1)
End If
End If
ActiveCell.Offset(1, 0).Select

_Loop_While_Not_ActiveCell.Offset(0,_-35).Value_=_\"\"_


End Sub


Is there any way to say something like -Loop While Not 'ID Number'
""-?

Thanks in advance,
00

--
Message posted from http://www.ExcelForum.com

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
Omit header from first page without embedding header in code ibvalentine Excel Worksheet Functions 6 August 28th 07 05:10 AM
Get Intersection value given column header and row header Scorcel Excel Discussion (Misc queries) 1 June 6th 07 08:24 AM
Excel-Header-My Company Name won't work in Header (AT&T) & Time June K Excel Discussion (Misc queries) 2 April 10th 06 08:36 PM
Excel: custom header - is it possible to paste into header? Maureen D. Excel Worksheet Functions 0 November 4th 05 03:07 PM
how do I permanetly add custom header to excel header list? GARY Excel Discussion (Misc queries) 1 December 15th 04 08:52 PM


All times are GMT +1. The time now is 07:26 AM.

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

About Us

"It's about Microsoft Excel"