Select Cells
Upcoming Power Excel Seminars
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Select Cells

  1. #1
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Christchurch New Zealand
    Posts
    1,030
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Need Some code to select the next empty cell on a page for example
    range("a1").select
    'where a2 is the next avaliable cell
    then a3 and so on?

  2. #2
    Guest

    Default

    On 2002-03-13 16:54, brettvba wrote:
    Need Some code to select the next empty cell on a page for example
    range("a1").select
    'where a2 is the next avaliable cell
    then a3 and so on?
    There are better methods but this old dog is only just learning:

    Dim MTCell as Range
    for each MTcell in Range("a1:A10")
    If ActiveCell = Not Empty Then
    (do your thing here)
    End If
    Next


  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Brisbane, Down Under
    Posts
    542
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    sorry that was me - forgot to login

  4. #4
    Guest

    Default

    On 2002-03-13 16:54, brettvba wrote:
    Need Some code to select the next empty cell on a page for example
    range("a1").select
    'where a2 is the next avaliable cell
    then a3 and so on?

    Dim cell As Range, rng As Range
    Set rng = Columns(1).SpecialCells(xlCellTypeBlanks)
    For Each cell In rng
    MsgBox cell.Address
    Next


  5. #5
    Guest

    Default

      
    On 2002-03-14 00:40, Anonymous wrote:
    On 2002-03-13 16:54, brettvba wrote:
    Need Some code to select the next empty cell on a page for example
    range("a1").select
    'where a2 is the next avaliable cell
    then a3 and so on?
    Or perhaps you are just looking for :-

    [A65536].End(xlUp)(2,1).Select


    Dim cell As Range, rng As Range
    Set rng = Columns(1).SpecialCells(xlCellTypeBlanks)
    For Each cell In rng
    MsgBox cell.Address
    Next


User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com