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: 1,089
Default Copying an array to a worksheet: Excel 97 vs 2000

Dear all

I am accumulating monthly totals in a an array defined as:

Dim MonthTotal(1 To 12) As Variant

The following single line of code works in Excel 2000:

SheetCell.Offset(0, 1).Resize(, 12) = MonthTotal

But, in Excel 97 at work, for some reason it creates text values with $
signs (followed by a space)
So, instead, I've had to resort to this:

For i = 1 To 12
SheetCell.Offset(0, i) = MonthTotal(i)
Next 'i

It's not a problem as such as I've found a workaround. However, I would
like to understand what, if anything, I'm doing wrong ... or is this a
difference between Excel 97 and Excel 2000 ?

Regards

Trevor


 
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
formatting of charts changes when copying from excel 2000 to 200. philall86 Charts and Charting in Excel 1 June 27th 09 08:33 PM
excel 2000 - array formulas cdsta Excel Worksheet Functions 14 October 19th 06 10:34 PM
Excel 2000 problem copying drawingobjects between sheets SiriS Excel Discussion (Misc queries) 0 February 8th 06 10:31 AM
Copying subtotals in Excel 2000 pearsall Excel Discussion (Misc queries) 3 April 21st 05 01:05 PM
Excel 2000 filling/copying Matt Setting up and Configuration of Excel 2 February 1st 05 03:00 PM


All times are GMT +1. The time now is 11:43 PM.

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"