Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with ActiveCell.EntireRow.Delete Ayo Excel Discussion (Misc queries) 4 July 20th 08 11:07 AM
Need Help with ActiveCell.EntireRow.Delete Ayo Excel Discussion (Misc queries) 8 July 19th 08 04:45 PM
delete entirerow if date more than 12months old flow23 Excel Discussion (Misc queries) 1 May 25th 06 03:32 PM
How to fix cell.entirerow.delete? guy Excel Programming 1 March 10th 05 02:31 AM
EntireRow.Delete Steph[_3_] Excel Programming 14 January 21st 05 10:31 PM


All times are GMT +1. The time now is 03:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"