Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() The Code Cage Team;23733 Wrote: Depending on your dropdown cell something like: Dim oCell As String oCell = Sheets("Sheet1").Range("A1").Value 'change to suit the dropdown 'assuming dropdown has Cell addresses Range(Cells(Range(oCell).Row, 1), Cells(Range(oCell).Row, 10)).Copy _ Destination:=Sheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1, 0) The above code copies the data from columns A - J for the specified row, so if the value of A1 was AZ22 the code will copy A22:J22 to the next available row on sheet 2. Did this not work for you? -- The Code Cage Team Regards, The Code Cage Team 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2 View this thread: http://www.thecodecage.com/forumz/showthread.php?t=7117 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select Entire Row if Text is Red | Excel Programming | |||
Select the entire row | Excel Discussion (Misc queries) | |||
select cell rather selecting entire row | Excel Programming | |||
How to select entire column using VBA | Excel Programming | |||
select contents of entire worksheet | Excel Programming |