LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Function not copying

For a variety of solid reasons that are too lengthy and irrelevant t
get into here, I have the following setup: a cell that contains th
following formula

=GetTheText("D95", "D49"

(D95 and D49 are just examples. What is important is that the cel
that contains this formula is neither cell D95 or D49.

Here is the GetTheText function

Function GetTheText(SourceCell As String, TargetCell As String

Range(SourceCell).Selec
Selection.Cop
Range(TargetCell).Selec
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone
SkipBlanks:=
False, Transpose:=Fals

End Functio

Nothing seems to happen. When I check the clipboard it shows nothin
in there. Is there any reason why a function might refuse to put
value into another cell? Seems unlikely.

The bigger question here is how can create a function (so that I ca
plug it into a cell) that copies the contents of a cell and paste
special (to retain formatting) into another cell. We're talking
cells, here

thank you

 
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
copying the Hyperlink function result without copying the actual formula mcheng Excel Worksheet Functions 2 June 9th 07 02:43 AM
Enable copying function Freshman Excel Worksheet Functions 5 November 15th 06 07:42 PM
Copying a hyperlink with a function Randy Excel Worksheet Functions 4 June 21st 06 05:34 PM
copying function value Miss Dedly Excel Discussion (Misc queries) 2 January 12th 06 07:58 PM
copying existing function Brad Excel Worksheet Functions 0 February 22nd 05 01:34 PM


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