Results 1 to 4 of 4

Thread: Selection range

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Works only on ActiveSheet

    may be..
    Code:
        With Sheet1
            MsgBox .Range(.Cells(4, 5), .Cells(.Rows.Count, 5).End(3)).Address
        End With
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  2. #2
    Senior Member
    Join Date
    Oct 2011
    Posts
    135
    Rep Power
    14
    Hi

    Thanks to the suggestion, I thought the undocumented format I used: .Cells(.Rows.Count, 5).End(3)).Address
    could create areas selection problems

Similar Threads

  1. Extend the macro to a selection of cells...
    By MrBlackd in forum Excel Help
    Replies: 4
    Last Post: 09-10-2013, 01:39 PM
  2. Replies: 4
    Last Post: 11-20-2012, 05:11 PM
  3. Replies: 3
    Last Post: 04-08-2012, 08:05 AM
  4. Using Selection.Address
    By Rasm in forum Excel Help
    Replies: 1
    Last Post: 11-28-2011, 05:20 AM
  5. Mail Range or Selection using VBA
    By LalitPandey87 in forum Excel Help
    Replies: 1
    Last Post: 11-03-2011, 09:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •