Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.languages.csharp,microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default notify drop event of excel/word in C# add-in

Hi Friends,

I don't know how many times I have submitted this topic, but no one is
trying to answer me....please some one try to help me.

I have created an add in C#, which is popup a form on excel. Now my
query is, i have a tree control which contain some data. now when user
drag any item to excel cell at that time i want information about that
cell...like cell location, WorkSheet name, cell value...etc

At first it's seems easy...but it's not. I have tried by using invoke
methods of excel...but no luck no any idea which method i have to
invoke. Is there any way from where i can findout/raise those drop or
dropleave method of excel Worksheet.

This is my fifth post past 6 days....please some one try to help me.


Your help is greatly appreciated.
Thanks,
Rushikesh Joshi

  #2   Report Post  
Posted to microsoft.public.dotnet.languages.csharp,microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default notify drop event of excel/word in C# add-in

You need to handle the SheetChange event of either the Worksheet or
Application object. Excel will pass you the Range object in the event.

For more information, and examples in C#:

http://msdn.microsoft.com/library/de...VSTSQLExcl.asp

Troy

  #3   Report Post  
Posted to microsoft.public.dotnet.languages.csharp,microsoft.public.office.developer.com.add_ins,microsoft.public.outlook.program_addins,microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default notify drop event of excel/word in C# add-in




an ultra simple VBAevent handler to catch drops:

''code for thisworkbook:
Option Explicit

Dim WithEvents xlapp As Excel.Application

Public Sub workbook_open()
Set xlapp = Application
End Sub

Private Sub xlapp_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If xlapp.CellDragAndDrop Then
MsgBox "Drop on " & Target.Address(external:=True)
End If
End Sub




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Rushi wrote :

Hi Friends,

I don't know how many times I have submitted this topic, but no one is
trying to answer me....please some one try to help me.

I have created an add in C#, which is popup a form on excel. Now my
query is, i have a tree control which contain some data. now when user
drag any item to excel cell at that time i want information about that
cell...like cell location, WorkSheet name, cell value...etc

At first it's seems easy...but it's not. I have tried by using invoke
methods of excel...but no luck no any idea which method i have to
invoke. Is there any way from where i can findout/raise those drop or
dropleave method of excel Worksheet.

This is my fifth post past 6 days....please some one try to help me.


Your help is greatly appreciated.
Thanks,
Rushikesh Joshi

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel lock / Notify feature malfunctioning andrei999 Excel Worksheet Functions 0 June 24th 09 08:39 PM
Notify when cell value changes - Excel 2007 terryc[_2_] Excel Worksheet Functions 0 January 23rd 08 08:59 PM
Notify Alert does not work in Excel Pete Indio Excel Discussion (Misc queries) 0 August 19th 05 04:00 AM
Catch drop event in excel Edi Excel Programming 1 February 20th 05 05:26 PM
Can Excel notify me when a date is due? Claire Chandler Excel Discussion (Misc queries) 3 February 8th 05 03:11 PM


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"