Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 14th, 2003, 03:46 AM
walliscw's Avatar
walliscw walliscw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Austria
Posts: 17 walliscw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 sec
Reputation Power: 0
Angry Undefined Code Jumps in VBA

I've got a very strange problem ...

I want to copy a region of an excel sheet, and paste it as a new slide in a powerpoint presentation ... that would regularly be achieved by the following code:

Range(sPrintArea).Copy
Set ppShapeRange = ppSlide.Shapes.Paste

BUT:

While executing the second command (paste) VBA jumps to a totally other region of the code, in my case into the error region of another function in another module. And it's no use setting a breakpoint over there, because the program doesn't get past this point , although it's executing exactly this code.

Does anybody have a clue what this phenomena could be or how and where I can get a solution for it ? Thanks for any help ...

Wolfgang

Reply With Quote
  #2  
Old October 14th, 2003, 09:58 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
What's the ppShapeRange??Can u tell me??

Reply With Quote
  #3  
Old October 14th, 2003, 11:20 PM
walliscw's Avatar
walliscw walliscw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Austria
Posts: 17 walliscw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 sec
Reputation Power: 0
Ok, here the declarations ...

Dim ppShapeRange As PowerPoint.ShapeRange
Dim ppSlide As PowerPoint.Slide
Dim sPrintArea As String


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Undefined Code Jumps in VBA


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway