Feb 21, 2007 #1 njwcad Technical User Joined Oct 16, 2002 Messages 156 Location GB Can anyone help Is it possible to lock a combo - box in excel based on an if statement when a worksheet is opened For example On open If A1 > 0 then lock Combo Box Can someone advise suitable code for achieving this Many Thanks
Can anyone help Is it possible to lock a combo - box in excel based on an if statement when a worksheet is opened For example On open If A1 > 0 then lock Combo Box Can someone advise suitable code for achieving this Many Thanks
Feb 21, 2007 #2 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US Hi, Right click the sheet tab. View/Project Explorer Select the ThieWorkbook object Click the Object dropdown and select Workbook. Select OPEN in the Procedures drop down. The Workbook_Open event is where you can run your code. Skip, [red][/red] Upvote 0 Downvote
Hi, Right click the sheet tab. View/Project Explorer Select the ThieWorkbook object Click the Object dropdown and select Workbook. Select OPEN in the Procedures drop down. The Workbook_Open event is where you can run your code. Skip, [red][/red]
Feb 21, 2007 Thread starter #3 njwcad Technical User Joined Oct 16, 2002 Messages 156 Location GB Skip Thats great and many thanks - unfortunately I am an extreme novice and not sure exactly what the code should be Thanks Upvote 0 Downvote
Skip Thats great and many thanks - unfortunately I am an extreme novice and not sure exactly what the code should be Thanks
Feb 21, 2007 #4 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US Do you know how to lock the object? Turn on your macro recorder and go thru the steps of doing it. Post back with your recorded code if you need help. Skip, [red][/red] Upvote 0 Downvote
Do you know how to lock the object? Turn on your macro recorder and go thru the steps of doing it. Post back with your recorded code if you need help. Skip, [red][/red]