Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
EntireRow.Delete, Causes Problems In ComboBox In Another Workbook
With ActiveSheet
LastRow = .UsedRange.Rows.Count .Range(.Cells(FirstRow, 1), .Cells(LastRow, 1)).EntireRow.Select End With This line performs the tasks that it is asked but it erases other values contained in a combobox in another workbook. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
EntireRow.Delete, Causes Problems In ComboBox In Another Workbook
Hi Raleigh
try this Sub a() With ActiveSheet Dim LastRow As Double 'countt columns A LastRow = Cells(Rows.Count, "A").End(xlUp).Row Rows("1:" & LastRow).Select End With End Sub Regards Yngve |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
EntireRow.Delete, Causes Problems In ComboBox In Another Workb
"Yngve" wrote: Hi Raleigh try this Sub a() With ActiveSheet Dim LastRow As Double 'countt columns A LastRow = Cells(Rows.Count, "A").End(xlUp).Row Rows("1:" & LastRow).Select End With End Sub Regards Yngve Thank you I am going to try it out right now. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
EntireRow.Delete, Causes Problems In ComboBox In Another Workb
"Raleigh" wrote: "Yngve" wrote: Hi Raleigh try this Sub a() With ActiveSheet Dim LastRow As Double 'countt columns A LastRow = Cells(Rows.Count, "A").End(xlUp).Row Rows("1:" & LastRow).Select End With End Sub Regards Yngve Thank you I am going to try it out right now. I am so sorry in the initial function there was an 'EntireRow.Delete' not an 'EntireRow.Select' so it would have looked like this.. With ActiveSheet LastRow = .UsedRange.Rows.Count ..Range(.Cells(FirstRow, 1), .Cells(LastRow, 1)).EntireRow.Delete End With Should I still just make and attempt with the code you gave me and just switch 'delete' with 'select'? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need Help with ActiveCell.EntireRow.Delete | Excel Discussion (Misc queries) | |||
Need Help with ActiveCell.EntireRow.Delete | Excel Discussion (Misc queries) | |||
delete entirerow if date more than 12months old | Excel Discussion (Misc queries) | |||
How to fix cell.entirerow.delete? | Excel Programming | |||
EntireRow.Delete | Excel Programming |