Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tg tg is offline
external usenet poster
 
Posts: 58
Default creating a UDF for copy

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 248
Default creating a UDF for copy

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 468
Default creating a UDF for copy

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default creating a UDF for copy


A function can only return a value not physically perform a copy, is
that what you really want?

TG;304001 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



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=85025

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 248
Default creating a UDF for copy

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
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
Creating a Copy/Paste Loop [email protected] Excel Programming 2 November 7th 07 02:33 AM
Creating a Workbook Copy nickm687 Excel Programming 0 April 3rd 07 12:58 PM
Creating a back up copy. sungen99[_27_] Excel Programming 6 October 12th 05 06:02 PM
Creating a copy of a worksheet Simon[_13_] Excel Programming 4 December 14th 03 12:09 AM
Creating a copy of a worksheet II (Just 2 more things please...) M Hill Excel Programming 0 December 14th 03 12:05 AM


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