Results 1 to 4 of 4
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Select End of Column (VBA/Word/2000 & 2003)

    Hi
    I have spent the day searching for the VBA command that will relocate the entry point to the last cell of a column (Table column), from anywhere within that column. I would be ever so grateful if someone could point me to it. I know that one exists as I've used it before. There is a companion command to take the entry point to the last cell in a row.
    TIA
    Regards
    Don

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 15 Times in 15 Posts

    Re: Select End of Column (VBA/Word/2000 & 2003)

    Selection.EndKey Unit:=wdColumn

    Selection.EndKey Unit:=wdRow

  4. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Select End of Column (VBA/Word/2000 & 2003)

    Thank you Hans
    You've just demonstrated that there's more than one way to skin a cat. Without doubt, what you have just provided me works a treat on the 2K installation. I was working earlier on a 2003 machine, and I am fairly certain (notice the slight waffling now), that this command was unsuccessful. Also I am certain that I have used in the past, a command that used a compound word something like ColumnEnd or EndOfColumn. If I ever locate it I will post.
    I hope that this rambling doesn't create the impression that your support is not appreciated; In this corner of the world it's bloody well vital. Thanks again
    Regards
    Don

  5. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Select End of Column (VBA/Word/2000 & 2003)

    Oh wow, never heard of these, but they seem to work in a symmetrical table in Word 2003. If you have merged cells, all bets are off.

Posting Permissions

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