Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Paste range from Clipboard to Excel


"Tom Ogilvy" wrote in message
...
don't copy.

bk.worksheets(1).Range("A1").Formula = _
bk2.worksheets(3).Range("B9").formula

--
Regards,
Tom Ogilvy

"Dariotto" wrote in message
...
Hi, I'm trying to use Clipboard from VBA in Excel 2000.
I can paste a single cell from the Clipboard using DataObject and

related
methods (MSForms 2.0 obj library) but I can't manage a range of cells.
After selecting and copy a range of cells from Excel to the Clipboard,

with
Clipboard Viewer I can see only one text string (from the last cell) and

no
formulas.

Should I try with WinAPI calls??? I searched Internet and I've found a

tool
(API Viewer) to look at the declares statement of a DLL, i.e.:
Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Long)

As
Long
but I've never used it before.
I'd like to do a macro that can check if the Clipboard contains a range

from
Excel and then make an "exact copy" of all the range formulas into a new
worksheet / workbook without formula address changes.
Thank you for any suggestion ????




Is there a similar "shortcut" to copy Book1.Sheet1 to ActiveWorkbook.Sheet1
?

Record Macro came up with:
Windows("Book1").Activate
Cells.Select
Selection.Copy
ThisWorkbook.Sheets("Sheet1").Activate ActiveSheet.Paste




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
how do I paste formulas in excel clipboard? AndyBermuda Excel Discussion (Misc queries) 3 May 27th 05 03:25 PM
Paste range from Clipboard to Excel Dariotto Excel Programming 0 March 7th 05 03:49 PM
Paste from clipboard to an Excel table ChrisW Excel Programming 10 January 13th 05 09:31 AM
How do I paste from clipboard to range using Excel VBA Beesagood Excel Programming 5 October 15th 04 12:10 AM
Paste Clipboard from Word to last row in excel Otto Moehrbach[_3_] Excel Programming 1 July 23rd 03 03:30 PM


All times are GMT +1. The time now is 07:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"