+ Reply to Thread
Results 1 to 5 of 5

Cell Selection Problem

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    7

    Cell Selection Problem

    I have a code that finally does just about everything it needs to. My problem comes in because of clearing the formatting after a hyperlink is removed. if i make any changes to a cell it clears the formatting and then automatically selects back to that cell even if i click a different one. Anyone have any ideas around this? I dont need the formatting cleared everytime the cell is changed, only once after the hyperlink is removed. for example if i removed the hyperlink and edited the cell by highlighting it, itll work, but i ever need to make additional changes it will clear the formatting again. I attached my code, any help you can provide is appreciated! Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Cell Selection Problem

    Try something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Cell Selection Problem

    THanks for the reply. What you have works very similar to what I have. The problem of cell selection is gone now, but the cell.locked=false is giving me issues. I get the following error message when I try make changes to the cell "Run-time error '1004': Unable to set the locked property of the range class. This only happens if the sheet is protected, which is a problem since it will be protected. not sure how to combat this. its got to be a protection problem that i haven't addressed in the code?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Cell Selection Problem

    The code un-protects and re-protects the worksheet. Change the password to suit.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-18-2013
    Location
    Utah
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Cell Selection Problem

    Thanks! I tried what you had and it took away all hyperlink functionality. What I found was that that I just needed to change the password formatting to Me.Unlock ("Password") instead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Range Selection and Active Cell problem
    By GazzaLDN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2013, 07:47 AM
  2. for each cell in selection problem
    By Bishonen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2012, 06:16 AM
  3. Cell Selection Problem
    By diegovarela in forum Excel General
    Replies: 3
    Last Post: 10-04-2007, 07:01 AM
  4. Cell selection problem
    By DanG in forum Excel General
    Replies: 2
    Last Post: 03-17-2006, 01:20 PM
  5. [SOLVED] Help! Loss of Tab control/cell selection problem
    By jkitzy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2005, 03:06 PM

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