Pb with Drag and Drop

Microsoft OFFICE

    Sponsored Links


  • 1. PowerPoint 11: AddOLEObject, object doesn't show.
    I'm using automation to create my PowerPoint presentation. I add a MSGraph OLE object to a slide. When I open PowerPoint the place holder for the graph shows when the mousepointer is moved over it. But the graph itself is hidden until it is double clicked for editing. Do anyone here knows how to solve this problem? Thanks in advance, TWH
  • 2. loading a bitmap into an image control from the clipboard
    Hi there. In code, can I load a bitmap into an image control from the clipboard? I've stored the bitmap onto the clipboard in code as follows: ActiveSheet.ChartObjects("Chart 1").CopyPicture xlScreen, xlBitmap Normally, I would load a bitmap from a file as follows: UserForm1.Image1.Picture = LoadPicture(pathname). Can anyone help? Thanks, Loane
  • 3. AutoNew for Auto numbering not working for all users
    Have inserted an AutoNew macro for autonumbering (see below)into a form template. The bookmark the text file is dumping into is in an unprotected section of the template. Both template and accompanying text file reside on a common server. The problem? It works fine from my computer and another computer in my office, but does not work from other computers on the network. The employees have read rights to the folder where the template resides through a tab within word. When the user selects "FileNew", the file opens and hesitates, like it is tryping to pull it together, then they get a Visual Basic error which reads: Method 'PrivateProfileString' of object 'System' Failed. Where do I start looking (location, permissions, etc.) for a solution so all can access the autonumbering schema? ---------------------------------------- Sub AutoNew() ' ' AutoNew Macro ' Macro created 9/17/2003 by XXXXXX ' ReqNo = System.PrivateProfileString("\\NTServer\ Settings.Txt", "MacroSettings", "ReqNo") If ReqNo = "" Then ReqNo = 0 Else ReqNo = ReqNo + 1 End If System.PrivateProfileString ("\\NTServer\Settings.Txt", "MacroSettings", "ReqNo") = ReqNo ActiveDocument.Bookmarks("ReqNo").Range.InsertBefore Format (ReqNo, "00000#") ActiveDocument.SaveAs FileName:="ReqNo" & Format (ReqNo, "00000#") End Sub
  • 4. Opening Non MS applications and print files from VB
    I am currenting using a Module in Access2k to open and populate bookmarked MS Word documents and print them. This works great and is a huge time saver. I would like to open some non-microsoft files (*.pdf, *.dwg) with the native applications for printing. I can extract the fileNames with an ADO procedure from a SQL datastore. Not sure if this is possible. No modiifications to the files are required, just printing. Currently this is a time consuming non automated process. Any Ideas? thanks for the responses. G

Pb with Drag and Drop

Postby ByB » Mon, 11 Jun 2007 21:47:25 GMT


I am developping a VBA program in Access where I want to make drag and 
drop between a ListView control and a TreeView control.

My problem now is that where I drag the ListView item to the Treeview 
item, and drop it at the first level item of the TreeView, it seems to 
But if I drop the item in a sub-level item of the TreeView, I get an 
error message telling that "This would cause a cycle". But I don't 
understand why, as the item i drop is coming from the ListView, and was 
not already in thbe TreeView.

Can somebody tell me what is the cause of this message, and how I can 
prevent it ?

Thank you !

La mondialisation, c'est bien... L'internet, les thones portables, 
les ordinateurs... toutes ces choses qui ne concernent pas la moitide 
la plane ! [Jimmy Carter]

Similar Threads:

1.Drag & Drop (without drag!!)

hi everybody,
Hope there is a geniues or two out there!

I can make drag & drop, from VB6, but i want to make the same
functioin without drag & drop,  I want trough code to drop a
picture on a other program, the program is designed to use
drag & drop, so i ques it must be possible to do that, without
 use of the mouse!

Know that sounds weard, but i need that function to complete
 a exthange between two programs, in a handicap program.

Best regards
Kim Holzmann 

2.Drag & Drop Email Message to Appt Doesn't Drop Attachment

When I drag and drop an email message with an attachment into an appointment, 
the attachment isn't there.  The name of the attachment is there, but nothing 
opens.  I'm pretty sure it used to work.  Are there settings I can check to 
see if they've changed?

3.Drag & Drop only drops sometimes in Word


I have a C# Word Add-In (not VSTO) and I am calling DoDragDrop and passing 
it an IDataObject implementing class.

About 2/3 of the time, I cannot drop this object into Word - I never get the 
drop cursor. Here's what is happening:

It calls:
public string[] GetFormats(bool autoConvert)
	return new string[] {DataFormats.Rtf} ;

Then it calls:
public bool GetDataPresent(string format, bool autoConvert)
	return format == DataFormats.Rtf;

The thing is - when it's not working it calls this asking for a number of 
formats: FileDrop, Woozle, Office Drawing Drag-Drop Format, Office Drawing 
Shape FOrmat, PNG+Office Art, GIF+Office Art, JFIF+Office Art, MSClipGallery, 
and HTML Format. But not Rich Text Format.

Then the next time it asks for RTF. Why?????

thanks - dave

4.drag and drop email into a folder - drops in wrong folder

when I drag & drop an email into a personal folder - it drops into a totally 
different folder and I know how to drag & drop properly

MS office outlook 2003 (11.8206.6568) SP2

5.Drag&Drop event word//link dropped picture


what I want to do is to change D&D behavior when an image from explorer
is dropped to word. The standard behavior of Word is to embed the image - I 
want to insert only a reference/link to the image. I did not find any 
possiblity to let Word link the image. When doing a D&D with right mouse 
button, Word displays a context
menu with "link here", but it's grayed out.

Any suggestions how I could achive to get a linked image when
doing D&D from explorer to Word - either by changing some Word settings or by
implemting an add-in - are greatly appreciated.


6. need the drop location of drag & drop in a Word/Excel/PPT document

7. Outlook Message drag-and-drop to Bound Object Frame

8. How to Capture Drag-Drop(ed) Attachment from Outlook Email

Return to Microsoft OFFICE


Who is online

Users browsing this forum: No registered users and 94 guest