DanG
Registered User.
- Local time
- Today, 11:38
- Joined
- Nov 4, 2004
- Messages
- 477
I am just starting to learn VBA.
What I'd like to do..
1. Find last used cell in column "A". - I know how to do this
2. Cycle through the range and finding specific values (in my case I am looking for district names (North State, South Bay...).
3. Once found I would like to copy that district and the entire row for that district. and move it to another sheet.
4. Final result is the desired district rows on another sheet with no blanks between them.
Here is what I have for the column range...
Thank you
What I'd like to do..
1. Find last used cell in column "A". - I know how to do this
2. Cycle through the range and finding specific values (in my case I am looking for district names (North State, South Bay...).
3. Once found I would like to copy that district and the entire row for that district. and move it to another sheet.
4. Final result is the desired district rows on another sheet with no blanks between them.
Here is what I have for the column range...
Code:
Sub MyRangeCol()
Dim myrange As Range
Set myrange = Range("$a$1", Range("a65536").End(xlUp))
myrange.Name = "ColumnA" [COLOR="Green"]'(I just did this for fun)[/COLOR]
End Sub
Thank you