Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Phil Sanchez   on Feb 16 In MS Office Category.

  
Question Answered By: Sadie Black   on Feb 16

Sub TryThis()
Dim strN As String, strFirstCell As String, strLastCell As String
Dim strTopRightCell As String, strBottomLeftCell As String

strN = ActiveWindow.VisibleRange.Address
strFirstCell = Range(strN).Cells(1).Address
strLastCell = Range(strN).Cells(Range(strN).Cells.Count).Address
strTopRightCell = Cells(Range(strFirstCell).Row, Range _
(strLastCell).Column).Address
strBottomLeftCell = Cells(Range(strLastCell).Row, Range _
(strFirstCell).Column).Address

End Sub

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 


Tagged: