Solved

Excel 2003 Visual Basic Runtime Error 1004

Posted on 2014-09-16
5
822 Views
Last Modified: 2014-09-22
Attached is a spreadsheet with Visual Basic subroutines for automatically advancing focus to certain cells, capturing current time stamps after certain cell entry, and then locking time stamp cells from edit.  

The sheet was developed from within Excel 2010 and seems to work fine inside that environment.

However, when running inside Excel 2003, it returns Runtime Error 1004, referencing inability to execute the Lock functions of the subroutine.

I really need some help reviewing the code here and eliminating the runtime error.  Could someone help?
0
Comment
Question by:mrherndon
  • 2
  • 2
5 Comments
 

Author Comment

by:mrherndon
ID: 40327218
0
 
LVL 45

Expert Comment

by:aikimark
ID: 40328629
I didn't encounter any error.  What data are you entering into these cells?
0
 
LVL 10

Accepted Solution

by:
FamousMortimer earned 500 total points
ID: 40328799
Looks like you have to call Me.Unprotect Password:="pwd" after If Not blnUnlockedAllCells Then
0
 

Author Comment

by:mrherndon
ID: 40337149
Thanks, FamousMortimer.  Excellent advice.
0
 
LVL 10

Expert Comment

by:FamousMortimer
ID: 40337235
Glad to help, thanks for the grade!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now