+ Reply to Thread
Results 1 to 7 of 7

Macro to find a cell then select a column

  1. #1
    Registered User
    Join Date
    02-20-2007
    Posts
    11

    Macro to find a cell then select a column

    Hi there

    Can anyone help me with this?

    I want to write macto to locate a column with the text "Help" as the header and the select that whole column.

    Forgive me if this seems too simple!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Maybe

    Assumes Row 1 has headers. Change as required

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-20-2007
    Posts
    11
    groovy - thanks

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

  5. #5
    Registered User
    Join Date
    02-20-2007
    Posts
    11
    The code you sent selected the correct cell ("AK1") - I then added the following to insert a new column to the right of it and fill that column with formulas:

    Please Login or Register  to view this content.
    But do you know how to do this withoutthe hard coded reference to cell "AK2"

    NIck

  6. #6
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Try this macro

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  7. #7
    Registered User
    Join Date
    02-20-2007
    Posts
    11
    thank you very much for that - really helps

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1