Solved

Excel 2003 Visual Basic Runtime Error 1004

Posted on 2014-09-16
5
900 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Office 2016 Excel Issue 4 26
splitting text of cell to columns 14 24
Message Logon Windows 2012 R2 Server 16 12
IF ELSE Statement in Excel Macro VBA 16 30
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 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

16 Experts available now in Live!

Get 1:1 Help Now