Display a range of cells

Tanner_2004

Well-known Member
Joined
Jun 1, 2010
Messages
616
I am using offset to find the header of a column that has several cell below it. I simply want to select the header or top field (which I now how to do), and the copy and paste all cell values to another range of cells. The cells that I want to copy of directly below the header or top field that has been selected.

Thank you.

PS. The idea is to use a down to find the name of a craft project, then return a shopping list of the protect items needed.

Thanks again!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Add a worksheet_selectionchange event:
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim rng As Range
Dim lRow As Long
Dim Col As Long     'target column

'if you want to watch all cells in row 1
If Target.Row = 1 Then
    lRow = Cells(Rows.Count, Target.Column).End(xlUp).Row
    Col = Target.Column
    If lRow > 1 Then
        Range(Cells(2, Col).Address, Cells(lRow, Col).Address).Copy Sheets(2).[A1]
        'change destination portion to actual location
    End If
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,180
Members
448,871
Latest member
hengshankouniuniu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top