Runtime Error 1004
Runtime Error 1004
Runtime Error 1004
Runtime Error 1004
Runtime Error 1004
Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004
Runtime Error 1004 Runtime Error 1004
Runtime Error 1004
Go Back  Xtreme Visual Basic Talk > > > Runtime Error 1004


Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2011, 01:43 PM
marcicj marcicj is offline
Newcomer
 
Join Date: Dec 2011
Posts: 1
Default Runtime Error 1004


I am working on a large spreadsheet with Macros. It worked fine when I only had one spreadsheet that the code was pulling from. When I added an array, I get the an error on the Activesheet.unprotect stating 'unprotect method of worksheet failed'. Any suggestions on what coding I need to add to make this work or what I need to change? Your help is appreciated.
Reply With Quote
  #2  
Old 12-08-2011, 04:31 PM
DennisW's Avatar
DennisW DennisW is offline
Junior Contributor
 
Join Date: Mar 2006
Location: Östersund, Sweden
Posts: 268
Default

Hi,
Is it VBA or VB.NET You use?
It's difficult to discuss unless You show the code in use.
__________________
Kind regards,
Dennis

.NET & Excel | 2nd edition PED | MVP
Reply With Quote
  #3  
Old 12-08-2011, 08:20 PM
Burningslash12's Avatar
Burningslash12 Burningslash12 is offline
Junior Contributor
 
Join Date: Sep 2008
Location: Singapore
Posts: 303
Default

Quote:
Originally Posted by marcicj View Post
I am working on a large spreadsheet with Macros. It worked fine when I only had one spreadsheet that the code was pulling from. When I added an array, I get the an error on the Activesheet.unprotect stating 'unprotect method of worksheet failed'. Any suggestions on what coding I need to add to make this work or what I need to change? Your help is appreciated.
Ok. Let me "decode" your problem. Does the "array" has something to do with referencing the worksheets in the workbook?

It will be better if you can post your code, or give more details to the actual problem. It's difficult to give any suggestions on the coding if we don't know the exact problem. Please spend some time in giving out details.
__________________
Burningslash12
"We may rise and fall, but in the end, we'll meet our fate together..."

Don't Click Me!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Runtime Error 1004
Runtime Error 1004
Runtime Error 1004 Runtime Error 1004
Runtime Error 1004
Runtime Error 1004
Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004 Runtime Error 1004
Runtime Error 1004
Runtime Error 1004
 
Runtime Error 1004
Runtime Error 1004
 
-->