Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Sylvia,
I have cooked up: Sub SylviasCopy() Dim intLook As Integer Dim intCol As Integer intLook = 10 For intCol = 1 To 14 If Worksheets("Sheet1").Cells(2, intCol).Value = intLook Then Worksheets("Sheet2").Cells(1, intCol).Value = intLook ' Exit For End If Next End Sub This will copy all valid values from sheet1 to sheet2 Top copy only the first valid value remove the character before Exit For Hoop this helps, Executor |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying Row Data to Specific Worksheet | Links and Linking in Excel | |||
Copying charts and their data with relative cell positions | Charts and Charting in Excel | |||
copying specific data from 1 wrksht to another | Excel Worksheet Functions | |||
Copying data to specific columns | Excel Programming | |||
Macro Help - copying specific data | Excel Programming |