Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Spreadsheet 9.0 Control

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 162
Default Spreadsheet 9.0 Control

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Spreadsheet 9.0 Control



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
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
Stock control spreadsheet Rocket Excel Worksheet Functions 0 February 9th 10 12:42 PM
stock control spreadsheet Max Excel Discussion (Misc queries) 2 January 15th 10 12:38 PM
Odd spreadsheet control 39N 95W Excel Discussion (Misc queries) 1 June 13th 06 06:45 PM
Using control to clear spreadsheet dvonj Excel Discussion (Misc queries) 11 March 20th 06 10:29 AM
stock control spreadsheet Mostropovich Excel Worksheet Functions 2 March 1st 05 06:23 PM


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