Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Refedit Paste

Hi,

I want colleagues to select the cel where they paste data in by using a
refedit (after they selected the cell, a set of other commands execute other
tasks such as copy data). Is this possible?!

Regards

Basta
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Refedit Paste

Hi Basta1980,

I want colleagues to select the cel where they paste data in by using a
refedit (after they selected the cell, a set of other commands execute other
tasks such as copy data). Is this possible?!


Maybe this page helps:

http://www.jkp-ads.com/articles/selectarange.asp

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Refedit Paste

Hi Jan Karel,

Thanks. Can you also tell me how to use the range specified with the refedit
can be use to paste content in?

Bas

"Jan Karel Pieterse" wrote:

Hi Basta1980,

I want colleagues to select the cel where they paste data in by using a
refedit (after they selected the cell, a set of other commands execute other
tasks such as copy data). Is this possible?!


Maybe this page helps:

http://www.jkp-ads.com/articles/selectarange.asp

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Refedit Paste

Hi Basta1980,

Thanks. Can you also tell me how to use the range specified with the refedit
can be use to paste content in?


The example file you can download has this routine in Module1:

Sub Test()
Dim oRangeSelected As Range
If SelectARange("Please select a range of cells!", "SelectARAnge Demo",
oRangeSelected) = True Then
MsgBox "You selected:" & oRangeSelected.Address(, , , True)
Else
MsgBox "You cancelled"
End If
End Sub

Instead of that, you could use something like:

Sub Test()
Dim oRangeSelected As Range
dim vValue as variant
vValue=Selection.cells(1,1).Value
If SelectARange("Please select a range of cells!", "SelectARAnge Demo",
oRangeSelected) = True Then
oRangeSelected.Value = vValue
Else
MsgBox "You cancelled"
End If
End Sub

This would put the value in the currently selected cell into the newly selected
range.

Regards,

Jan Karel Pieterse
Excel MVP
http://www.jkp-ads.com
Member of:
Professional Office Developer Association
www.proofficedev.com

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
To refedit, or not to refedit, that is the question. davegb Excel Programming 2 October 25th 06 08:19 PM
Refedit copy paste problem? T.c.Goosen1977[_53_] Excel Programming 3 July 10th 06 11:58 AM
Refedit copy paste problem? T.c.Goosen1977[_51_] Excel Programming 0 July 10th 06 09:55 AM
Refedit copy paste problem? T.c.Goosen1977[_52_] Excel Programming 0 July 10th 06 09:55 AM
RefEdit ??? T.c.Goosen1977[_21_] Excel Programming 0 July 3rd 06 03:11 PM


All times are GMT +1. The time now is 12:43 PM.

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"