Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi. The following macro works fine if I run it while the tab in question is
open. If I try to run it with another tab open, I get a 400 error. I'm pretty sure it's just a problem with the way I'm referencing the tab. Any ideas on how I could make this work? Sub Formatierung_Einverkauf() Set sh1 = Sheets("Einverkauf") z = 4 Do Until sh1.Cells(z, 1).Value = "" If sh1.Cells(z, 1).Value < sh1.Cells(z + 1, 1).Value Then sh1.Rows(z).Select With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With z = z + 1 Else z = z + 1 End If Loop End Sub Thanks a lot |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with Syntax? | Excel Worksheet Functions | |||
What is the syntax for referencing another sheet with 'lookup' | Excel Worksheet Functions | |||
SendKeys syntax problem | New Users to Excel | |||
Syntax for referencing totals of grouped data in a pivottable | Excel Worksheet Functions | |||
Syntax problem | Excel Worksheet Functions |