Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, Here is a question:
I have a very complicated worksheet, with about twenty or so sheets. It's really hard, unless you are familiar with the logic to follow the instructions on how to fill these sheets out. So, I decided to create a wizard, where the end user is walked through the various sheets. I wrote the code in a form housing a spreadsheet control, each time the user clicks on "Next" or "Back" the spreadsheet control is updated with the next or previous worksheet. Here is the code I am using to get the data from excel worksheet and display it in the spreadsheet control: Worksheets(myworksheet).Range("A1", "M200").Copy Spreadsheet1.ActiveSheet.Range("A1").Paste It works beautifully.... But when I try to do the reverse, I get error 438, the object does not support this property. Spreadsheet1.ActiveSheet.Range("A1", "M200").Copy Worksheets(myworksheet).Range("A1").Paste Anyone with any ideas, please.... Mohsen |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Paste is a method of the Worksheet object, so I'm surprised the first
copy/paste worked. Try: Spreadsheet1.ActiveSheet.Range("A1", "M200").Copy Worksheets(myworksheet).Paste Destination:=Range("A1") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks. I will try this. Is there a place where the spreadsheet control 9.0 is documented. Thanks. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stock control spreadsheet | Excel Worksheet Functions | |||
stock control spreadsheet | Excel Discussion (Misc queries) | |||
Odd spreadsheet control | Excel Discussion (Misc queries) | |||
Using control to clear spreadsheet | Excel Discussion (Misc queries) | |||
stock control spreadsheet | Excel Worksheet Functions |