Feb 21, 2007 #1 njwcad Technical User Oct 16, 2002 156 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 Dec 4, 2001 47,486 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, [sub] [red][/red] [/sub] 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, [sub] [red][/red] [/sub]
Feb 21, 2007 Thread starter #3 njwcad Technical User Oct 16, 2002 156 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 Dec 4, 2001 47,486 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, [sub] [red][/red] [/sub] 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, [sub] [red][/red] [/sub]