Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a Copy/Paste Loop | Excel Programming | |||
Creating a Workbook Copy | Excel Programming | |||
Creating a back up copy. | Excel Programming | |||
Creating a copy of a worksheet | Excel Programming | |||
Creating a copy of a worksheet II (Just 2 more things please...) | Excel Programming |