+ Reply to Thread
Results 1 to 8 of 8

select non-locked cells

  1. #1
    Registered User
    Join Date
    03-31-2006
    Posts
    4

    select non-locked cells

    ...it is possible to select only cells which are not locked...
    or delete...

    thanx a lot

  2. #2
    Tom Ogilvy
    Guest

    RE: select non-locked cells

    Sub SelectnonLocked()
    Dim cell as Range, rng as Range

    for each cell in ActiveSheet.usedRange
    if cell.locked = False then
    if rng is nothing then
    set rng = cell
    else
    set rng = union(rng,cell)
    end if
    end if
    Next
    If not rng is nothing then
    rng.select
    end if
    end sub

    --
    Regards,
    Tom Ogilvy


    "kontraa" wrote:

    >
    > ...it is possible to select only cells which are not locked...
    > or delete...
    >
    > thanx a lot
    >
    >
    > --
    > kontraa
    > ------------------------------------------------------------------------
    > kontraa's Profile: http://www.excelforum.com/member.php...o&userid=33028
    > View this thread: http://www.excelforum.com/showthread...hreadid=537177
    >
    >


  3. #3
    Registered User
    Join Date
    04-19-2006
    Posts
    14

    Select and Paste only visable cells?

    Is there a way to select and ONLY paste the cells that are visable...

    meaning if you have either Hidden or perhaps cells that are collapsed into Hierachy's and you only want to copy and paste the cells "as you see them"

    How do you do that? Thanks,

  4. #4
    Tom Ogilvy
    Guest

    Re: select non-locked cells

    copy and paste. That is the default behavior.

    --
    Regards,
    Tom Ogilvy


    "Browner" wrote:

    >
    > Is there a way to select and ONLY paste the cells that are visable...
    >
    > meaning if you have either Hidden or perhaps cells that are collapsed
    > into Hierachy's and you only want to copy and paste the cells "as you
    > see them"
    >
    > How do you do that? Thanks,
    >
    >
    > --
    > Browner
    > ------------------------------------------------------------------------
    > Browner's Profile: http://www.excelforum.com/member.php...o&userid=33657
    > View this thread: http://www.excelforum.com/showthread...hreadid=537177
    >
    >


  5. #5
    Registered User
    Join Date
    04-19-2006
    Posts
    14

    Tom Ogilvy Thank YOU!

    Wow you truly are a knowlegable force within MS Excel...

    Perhaps i phrased the question incorrectly. I was looking for a way to ONLY Paste what i saw... when in fact copy and paste will paste what is shown... it actually pastes all other hidden and supressed cells as well.

    The good thing is i found the answer... no thanks to you.
    You must hit Control G and go to view on only visable cells then hit control c and paste that.

    Jerk!

  6. #6
    Tom Ogilvy
    Guest

    Re: select non-locked cells

    Hope your day impoves.

    --
    Regards,
    Tom Ogilvy


    "Browner" wrote:

    >
    > Wow you truly are a knowlegable force within MS Excel...
    >
    > Perhaps i phrased the question incorrectly. I was looking for a way to
    > ONLY Paste what i saw... when in fact copy and paste will paste what is
    > shown... it actually pastes all other hidden and supressed cells as
    > well.
    >
    > The good thing is i found the answer... no thanks to you.
    > You must hit Control G and go to view on only visable cells then hit
    > control c and paste that.
    >
    > Jerk!
    >
    >
    > --
    > Browner
    > ------------------------------------------------------------------------
    > Browner's Profile: http://www.excelforum.com/member.php...o&userid=33657
    > View this thread: http://www.excelforum.com/showthread...hreadid=537177
    >
    >


  7. #7
    Dave Peterson
    Guest

    Re: select non-locked cells

    ""Oh, uh, there won't be any money, but when you die, on your deathbed, you will
    receive total consciousness." So I (YOU) got that goin' for me, which is nice."

    http://www.imdb.com/title/tt0080487/quotes



    Tom Ogilvy wrote:
    >
    > Hope your day impoves.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "Browner" wrote:
    >
    > >
    > > Wow you truly are a knowlegable force within MS Excel...
    > >
    > > Perhaps i phrased the question incorrectly. I was looking for a way to
    > > ONLY Paste what i saw... when in fact copy and paste will paste what is
    > > shown... it actually pastes all other hidden and supressed cells as
    > > well.
    > >
    > > The good thing is i found the answer... no thanks to you.
    > > You must hit Control G and go to view on only visable cells then hit
    > > control c and paste that.
    > >
    > > Jerk!
    > >
    > >
    > > --
    > > Browner
    > > ------------------------------------------------------------------------
    > > Browner's Profile: http://www.excelforum.com/member.php...o&userid=33657
    > > View this thread: http://www.excelforum.com/showthread...hreadid=537177
    > >
    > >


    --

    Dave Peterson

  8. #8
    Tom Ogilvy
    Guest

    Re: select non-locked cells

    Ah, it is nice when you say it that way. <g>

    --
    Regards,
    Tom Ogilvy

    "Dave Peterson" <petersod@verizonXSPAM.net> wrote in message
    news:44527C33.EA6C459@verizonXSPAM.net...
    > ""Oh, uh, there won't be any money, but when you die, on your deathbed,

    you will
    > receive total consciousness." So I (YOU) got that goin' for me, which is

    nice."
    >
    > http://www.imdb.com/title/tt0080487/quotes
    >
    >
    >
    > Tom Ogilvy wrote:
    > >
    > > Hope your day impoves.
    > >
    > > --
    > > Regards,
    > > Tom Ogilvy
    > >
    > > "Browner" wrote:
    > >
    > > >
    > > > Wow you truly are a knowlegable force within MS Excel...
    > > >
    > > > Perhaps i phrased the question incorrectly. I was looking for a way to
    > > > ONLY Paste what i saw... when in fact copy and paste will paste what

    is
    > > > shown... it actually pastes all other hidden and supressed cells as
    > > > well.
    > > >
    > > > The good thing is i found the answer... no thanks to you.
    > > > You must hit Control G and go to view on only visable cells then hit
    > > > control c and paste that.
    > > >
    > > > Jerk!
    > > >
    > > >
    > > > --
    > > > Browner

    > >

    > ------------------------------------------------------------------------
    > > > Browner's Profile:

    http://www.excelforum.com/member.php...o&userid=33657
    > > > View this thread:

    http://www.excelforum.com/showthread...hreadid=537177
    > > >
    > > >

    >
    > --
    >
    > Dave Peterson




+ 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