+ Reply to Thread
Results 1 to 4 of 4

From VBA: How to select a column by column number instead of letter?

  1. #1
    (Pete Cresswell)
    Guest

    From VBA: How to select a column by column number instead of letter?

    I'm in MS Access and don't know from column letters - all my constants are in
    terms of column number.

    I'd like to select, say, column number 7 and hide it....

    ?
    --
    PeteCresswell

  2. #2
    Don Guillett
    Guest

    Re: From VBA: How to select a column by column number instead of letter?

    in a macro
    columns(7).hidden=true

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "(Pete Cresswell)" <[email protected]> wrote in message
    news:[email protected]...
    > I'm in MS Access and don't know from column letters - all my constants are

    in
    > terms of column number.
    >
    > I'd like to select, say, column number 7 and hide it....
    >
    > ?
    > --
    > PeteCresswell




  3. #3
    Gord Dibben
    Guest

    Re: From VBA: How to select a column by column number instead of letter?

    Pete

    Columns(7).EntireColumn.Hidden = True


    Gord Dibben Excel MVP

    On Fri, 04 Feb 2005 14:21:04 GMT, "(Pete Cresswell)" <[email protected]> wrote:

    >I'm in MS Access and don't know from column letters - all my constants are in
    >terms of column number.
    >
    >I'd like to select, say, column number 7 and hide it....
    >
    >?



  4. #4
    (Pete Cresswell)
    Guest

    Re: From VBA: How to select a column by column number instead of letter?

    Per Gord Dibben:
    >Pete
    >
    >Columns(7).EntireColumn.Hidden = True


    Thanks Gord, thanks Don...
    I was trying
    ..Columns(7).Select
    ..Selection.Hidden=True.
    --
    PeteCresswell

+ 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