Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default "Automation Error"

Hi

I'm trying to create an Excel worksheet that automatically logs start
time, date, initials etc. for work being done in a lab. This sheet needs
to be protected so that some people can edit it and others may only view
it. After creating and testing this sheet I manually applied the
protection I wanted. When I tested it after I applying protection I
receive an "Automation Error". It always stops when trying to create a
drop down list in a cell.
Here is where the problem seems to be...

With Selection.Validation
.Delete
STOPS HERE -- .Add Type:=xlValidateList,
AlertStyle:=xlValidAlertStop,Operator:= _
xlBetween, Formula1:="=$A65530:$a65536"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With

I generated this by recording the steps it took to create a list using
Data-Validation. I appreciate any help you can provide.

Thanks,
Matt

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default "Automation Error"

Your code runs for me, unless worksheet protection is set. In which case I
too get an automation error. So if you're setting protection do it after
the rest of the code is run.

--
Jim Rech
Excel MVP


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"automation error" "unspecified error" ML Purdy Excel Discussion (Misc queries) 5 April 3rd 23 06:49 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM
Excel automation "Error loading DLL" Paul Hewson Excel Programming 0 January 5th 04 08:34 PM


All times are GMT +1. The time now is 11:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"