+ Reply to Thread
Results 1 to 12 of 12

VBA code that Stop Protection of Cell

  1. #1
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    VBA code that Stop Protection of Cell

    Hi All
    Below mention code is highlighted rows and colomns and allow conditional formatting too.
    but i want to add one more code for Protect the cell after every entry but when i apply that code it stop highlighting rows and colomns.
    Help me out so that both code work together.


    Code for Highlighting Rows and Colomns With Conditional Formatting

    Please Login or Register  to view this content.
    Code for Protecting Cell after each entry
    Please Login or Register  to view this content.

    Regards
    Last edited by waqarqrl; 08-30-2012 at 05:44 AM.

  2. #2
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: VBA code that Stop Protection of Cell

    Can any body help me out?????

  3. #3
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: VBA code that Stop Protection of Cell

    Hello
    One of my Friend Guide me through this code but following code doing some abnormal behavior blink the entire sheet abnormally.All Vba fox help me out. This code is about Highlighting, Protecting and allow Conditional Formatting

    Regards
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA code that Stop Protection of Cell

    To stop the screen from blinking each time the macro runs, you need to use this at the start of your code
    Please Login or Register  to view this content.
    and this at the end
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: VBA code that Stop Protection of Cell

    Thanks Arlu1201

    Can u please guide me where should i do this or If u please complete the code so i am great full to you.

    Regards

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA code that Stop Protection of Cell

    This is your code after putting the screenupdating lines -
    Please Login or Register  to view this content.
    What issue are you facing with this code?

  7. #7
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: VBA code that Stop Protection of Cell

    Hi Arlu1201

    I apply Your Code and it gives error on this line, whole line yellow.
    Please Login or Register  to view this content.
    and without this line sheet blink and stuck. I hope you will find the way.

    Regards

  8. #8
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: VBA code that Stop Protection of Cell

    It is not,
    Please Login or Register  to view this content.
    it is this,
    Please Login or Register  to view this content.
    You don't need the "s" at the end of application.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  9. #9
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: VBA code that Stop Protection of Cell

    Thanks Alot JapanDave

    I did what you say remove S but it hung the excel and even my other workbook stuck.
    I appreciate your concern. Need more your help to solve the problem.

    Regards

  10. #10
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: VBA code that Stop Protection of Cell

    Try this and see if it works.

    Please Login or Register  to view this content.
    Also, do you have another one of these event macros in the same module?

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA code that Stop Protection of Cell

    Thanks Dave. Typo at my end.

  12. #12
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: VBA code that Stop Protection of Cell

    Thanks Alot to all
    My work has been done

+ 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