PC Review


Reply
Thread Tools Rate Thread

creating a UDF for copy

 
 
TG
Guest
Posts: n/a
 
      10th Apr 2009
I would like to copy cell A1 to B1 without higlighting the cell and clicking
copy. I would like to use a UDF to copy a cell.


can anyone helomp me?

Thanks in advance,

TG
 
Reply With Quote
 
 
 
 
Sheeloo
Guest
Posts: n/a
 
      10th Apr 2009
Try
Function copyCell(rng As Range) As String
copyCell = rng
End Function

but Excel already provides for that
simply say
=A1
in B1
-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"TG" wrote:

> I would like to copy cell A1 to B1 without higlighting the cell and clicking
> copy. I would like to use a UDF to copy a cell.
>
>
> can anyone helomp me?
>
> Thanks in advance,
>
> TG

 
Reply With Quote
 
JMay
Guest
Posts: n/a
 
      11th Apr 2009
Wouldn't it be best to assign
Function copyCell(rng As Range) As Variant ?

"Sheeloo" wrote:

> Try
> Function copyCell(rng As Range) As String
> copyCell = rng
> End Function
>
> but Excel already provides for that
> simply say
> =A1
> in B1
> -------------------------------------
> Pl. click ''''Yes'''' if this was helpful...
>
>
>
> "TG" wrote:
>
> > I would like to copy cell A1 to B1 without higlighting the cell and clicking
> > copy. I would like to use a UDF to copy a cell.
> >
> >
> > can anyone helomp me?
> >
> > Thanks in advance,
> >
> > TG

 
Reply With Quote
 
Sheeloo
Guest
Posts: n/a
 
      11th Apr 2009
Yes.

Thanks for pointing that out.

"JMay" wrote:

> Wouldn't it be best to assign
> Function copyCell(rng As Range) As Variant ?
>
> "Sheeloo" wrote:
>
> > Try
> > Function copyCell(rng As Range) As String
> > copyCell = rng
> > End Function
> >
> > but Excel already provides for that
> > simply say
> > =A1
> > in B1
> > -------------------------------------
> > Pl. click ''''Yes'''' if this was helpful...
> >
> >
> >
> > "TG" wrote:
> >
> > > I would like to copy cell A1 to B1 without higlighting the cell and clicking
> > > copy. I would like to use a UDF to copy a cell.
> > >
> > >
> > > can anyone helomp me?
> > >
> > > Thanks in advance,
> > >
> > > TG

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rules - creating copy edn hello Microsoft Outlook Discussion 3 26th Mar 2008 07:53 PM
Creating a Workbook Copy nickm687 Microsoft Excel Programming 0 3rd Apr 2007 12:58 PM
Creating a back up copy. sungen99 Microsoft Excel Programming 6 12th Oct 2005 06:02 PM
Creating distribution list with a copy to and blind copy to =?Utf-8?B?Q29ubmll?= Microsoft Outlook Contacts 2 1st Jul 2005 04:51 PM
Creating a backup copy =?Utf-8?B?Um9iLUxNUw==?= Microsoft Access Form Coding 4 3rd May 2004 10:51 PM


Features
 

Advertising
 

Newsgroups
 


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