Vladimir_Ludovic
New Member
- Joined
- May 1, 2014
- Messages
- 3
Hello everyone,
This being my first post, I hope this forum can be helpfull to me, and I can to be helpfull to others. Please correct me if my style of posting is unclear or unjust.
I have a problem I am looking into for a day now, and still I can't lay my finger on it:
I have a data transfer macro, that writes cell data from a worksheet to another:
When I open the document, following code is applied:
When I use the combobox that activates the sub, Excel 2010 returns a warning message about the worksheet being read only, and doesn't resolve the transfer action.
I can't figure out why, since I used the UserInterfaceOnly:=True Flag, right? Why would excel bother about protected worksheets?
I hope someone can shine light on this!
This being my first post, I hope this forum can be helpfull to me, and I can to be helpfull to others. Please correct me if my style of posting is unclear or unjust.
I have a problem I am looking into for a day now, and still I can't lay my finger on it:
I have a data transfer macro, that writes cell data from a worksheet to another:
Code:
Sub cbxLocationLimits_Change()
' data laden vanaf Data_LocationLimits
locrowcounter = Sheets("Data_LocationLimits").Range("A1").Value
' PRODUCT DATA
For rowcounter = 0 To 6
For columncounter = 0 To 1
Sheets("InputSheet").Range("H5").Offset(rowcounter, columncounter).Value = _
Sheets("Data_LocationLimits").Range("B3").Offset(locrowcounter - 1, 2 * rowcounter + columncounter).Value
Next columncounter
Next rowcounter
End Sub
Code:
Private Sub Workbook_Open()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect UserInterfaceOnly:=True
ws.EnableAutoFilter = True
Next ws
ThisWorkbook.Protect Password:=strAdminPassword, Structure:=True, Windows:=False
End Sub
When I use the combobox that activates the sub, Excel 2010 returns a warning message about the worksheet being read only, and doesn't resolve the transfer action.
I can't figure out why, since I used the UserInterfaceOnly:=True Flag, right? Why would excel bother about protected worksheets?
I hope someone can shine light on this!