Solved

Excel 2003 Visual Basic Runtime Error 1004

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

830 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