msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

replace Excel 2000 -> Excel 2003

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
Henner



Joined: 04 Oct 2007
Posts: 1

PostPosted: Mon Jun 28, 2004 9:32 am    Post subject: replace Excel 2000 -> Excel 2003 Reply with quote

I am using the following code to edit data cell by cell:

r.Columns(i).Replace What:="", Replacement:=vbLf

I get a Microsoft error "Microsoft Excel cannot find any
data to replace. Check if your search formatting and
criteria are defined correctly. If you are sure that
matching data exists in this workbook, it my be on a
protected sheet. Excel cannot replace data on a protected
worksheet."

I have run this application on Excel 2000/97 with no
problems. I have not seen this problem until Excel 2002.

HOWEVER: THE DATA IS EDITED, regardless of the error
messagebox saying that it will not edit the data. How do
I manage the protection of this worksheet with VB in order
to prevent getting the excel message?

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group