Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Spreadsheet contains a data range from cell A4 that is
refreshed regularly with updated data. Column A contains a list of cities and is sorted A-Z. I am trying to cretae macor that will insert a blank row between each change of city all the way down. Cuurent attempt as follows but does not work? Dim strstate As String strtate = ActiveCell ActiveCell("a4").Select Do If strstate = ActiveCell.Offset(-1, 0) Then ActiveCell.Offset(1, 0).Select Else rowSelection.Insert Shift:=xlDown ActiveCell.Offset(3, 0).Select Loop Until ActiveCell.Offset(2, 0) = Empty End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Worksheet Functions | |||
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable | Excel Discussion (Misc queries) | |||
Macro Error | Excel Discussion (Misc queries) | |||
Macro error : Application-defined or object-defined error | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) |