Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub Macro1()
' Macro1 Macro ' Macro recorded 7/25/2006 by sdziamchuk ' Dim cell As Range Dim str As String Windows("experiment cahs trans.xls").Activate For Each cell In Range("a2:a40") If cell = 272244 And cell.Offset(0, 1) < "MISCELLANEOUS" Then cell.Offset(0, 2).Range("a1:l1").Select Selection.Copy Sheets("sheet1").Select ActiveCell.Offset(9, 0).Range("a1").Select Selection.Insert shift:=xlDown Sheets("experiment cahs trans").Select ElseIf Not IsEmpty(cell.Value) Then cell.Select With Selection.Interior ..ColorIndex = 5 ..Pattern = xlSolid End With Else: Exit Sub End If Next cell End Sub -- Sergei D |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complicated If Then / V Lookup / Match Statement... | Excel Worksheet Functions | |||
Need 2 add second then third code with first code in the Tab View | Excel Worksheet Functions | |||
Data from Excel to Access Table | Excel Discussion (Misc queries) | |||
Macro for changing text to Proper Case | Excel Worksheet Functions | |||
close form code | Excel Discussion (Misc queries) |