edit directly in cell

T

tracktraining

Hi All,

My coworker just tested my file and it didn't work. I soon realized that the
"edit directly in cell" option was check. So, after unchecking the option,
and the coworker double click on the cell, the userform appears and set the
userform to be active.

is there a way to have the "edit directly in cell" uncheck for certain excel
files and check for others without manually having to go to tools/options
everytime?

thanks,
tracktraining
 
B

Bob Umlas

For those files, Assign this macro to the workbook_open event:
Alt/F11, Ctrl/R, doubkle-click "ThisWorkbook", put in this code:

Private Sub Workbook_Open()
Application.EditDirectlyInCell = False
End Sub
 
M

meh2030

Hi All,

My coworker just tested my file and it didn't work. I soon realized that the
"edit directly in cell" option was check. So, after unchecking the option,
and the coworker double click on the cell, the userform appears and set the
userform to be active.

is there a way to have the "edit directly in cell" uncheck for certain excel
files and check for others without manually having to go to tools/options
everytime?

thanks,
tracktraining  

TrackTraining,

This option is the following code in VBA:

Application.EditDirectlyInCell = True (or False)

Look into writing this into a Workbook event (Activate/Deactivate).

Matt
 
M

Mike H

Hi,

Set it in the workbook open event

Private Sub Workbook_Open()
Application.EditDirectlyInCell = True

or

Application.EditDirectlyInCell = False
End Sub


Mike
 
T

tracktraining

thanks mike, bob, and matt!
--
Learning


TrackTraining,

This option is the following code in VBA:

Application.EditDirectlyInCell = True (or False)

Look into writing this into a Workbook event (Activate/Deactivate).

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top