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 

Adding Excel Worksheets

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



Joined: 04 Oct 2007
Posts: 5

PostPosted: Fri Feb 10, 2006 1:07 am    Post subject: Adding Excel Worksheets Reply with quote

When using this code "Worksheets.Add after:=Worksheets(1)" to add a
worksheet I get an "Application-defined or object-defined error". I have the
MS Excel 11.0 Object Library referenced. If I remove the
"after:=Worksheets(1)" code the worksheet gets inserted in place of the
first worksheet.

Thanks in advance.

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