Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Drag and drop event

Good day!

I'm doing a drag and drop in a worksheet...I have a userform with a
listview, then I have to drag names from the listview and drop it into
a specific cell in a worksheet...i'm having problems when I drop a name
into a merge cells, and have this message--"Data on the clipboard is
not the same size and shape as the selected area"...and when I click
"OK" another error is displayed--"Cannot change part of a merged
cell"...I am using a template so I can't just change those cells..I
also used the "Center Across Selection" alignment but its not good when
you have cells side by side and you edit the first cell, the data will
scatter along with the cells that have same alignment...I really need
on how can I trap the drop event in the worksheet..please help
me...thank you in advance

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Drag and drop event

I have never used a list view control - however I'm not sure that it works on
Excel sheets. usually, getting data from auserform to any user selected cell
would require the RefEdit control.

"Dantz" wrote:

Good day!

I'm doing a drag and drop in a worksheet...I have a userform with a
listview, then I have to drag names from the listview and drop it into
a specific cell in a worksheet...i'm having problems when I drop a name
into a merge cells, and have this message--"Data on the clipboard is
not the same size and shape as the selected area"...and when I click
"OK" another error is displayed--"Cannot change part of a merged
cell"...I am using a template so I can't just change those cells..I
also used the "Center Across Selection" alignment but its not good when
you have cells side by side and you edit the first cell, the data will
scatter along with the cells that have same alignment...I really need
on how can I trap the drop event in the worksheet..please help
me...thank you in advance


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Drag and drop event

Thanks for the response. I have set the property of the listview to
OLEDragAutomatic...then the worksheet just automatically accepts a
value from the listview but with single cell only. I'm having problems
when the cell to drop off is a merge cell...is there a way to determine
if a cell is merged even before it trigger the worksheet_change?

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
Drag & Drop Freshman Excel Worksheet Functions 1 November 5th 09 08:26 AM
drag and drop sramsey Excel Discussion (Misc queries) 5 February 22nd 08 09:35 AM
Trig on drag and drop event? Maria J-son Excel Programming 1 July 8th 05 02:30 PM
Drag and Drop Help! Peter[_51_] Excel Programming 2 December 23rd 04 08:22 AM
Drag and Drop Nath Excel Programming 1 June 1st 04 02:03 PM


All times are GMT +1. The time now is 02:19 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"