View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default VB Code Question

.Range("A1:C" & FoundCell.Row - 1).Select

or maybe

.Range("A1:C" & lastrowinB - 1).Select



Stan wrote:

Can anyone tell me what I need to add to the code below to move the range up
1 row?

LastRowInB = .Cells(.Rows.Count, "B").End(xlUp).Row
.Range("A1:C" & FoundCell.Row).Select

Many thanks!


--

Dave Peterson