![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 42
|
I have the following code
Sub matrix() Worksheets("matrix").Select Set designingmark = ActiveSheet.Rows("1:1").Find("MA") If Not designingmark Is Nothing Then Range(designingmark.Address).Select End If Set makingmark = ActiveSheet.Columns("A:A").Find("MA") If Not makingmark Is Nothing Then Range(makingmark.Address).Select End If Range(designingmark.Rows, makingmark.Columns).Select how do I select the last cell in the range that is currently selected |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
Range(designingmark.Rows, makingmark.Columns).SpecialCells(xlCellTypeLastCell).Select Hope this helps you out.
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|