Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have tried everything but the array stubbornly refuses to populate
any sheet except the one the code belongs to: Sub WontChangeWorksheetDestination() Dim wks As Worksheet Set wks = Sheets(3) With wks Set TheRange = Range(Cells(1, 1), Cells(10, 10)) TheRange.Value = MyArray End With End sub I've tried everything, but because the code is behind a button on sheet 1 the array populates sheet 1 and doesn't seem to want to populate any toher sheet no mattwer hw I try to qualify it ... what am I missing? Any help gratefully accepted, Kind regards, Mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Am Sun, 3 Jun 2012 10:29:01 -0700 (PDT) schrieb dial13: With wks Set TheRange = Range(Cells(1, 1), Cells(10, 10)) TheRange.Value = MyArray End With try: With wks Set TheRange = .Range(.Cells(1, 1), .Cells(10, 10)) TheRange.Value = MyArr End With Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Claus,
Thanks for the help, that works, kind regards, Mark On Monday, June 4, 2012 1:48:45 AM UTC+8, Claus Busch wrote: Hi, Am Sun, 3 Jun 2012 10:29:01 -0700 (PDT) schrieb dial13: With wks Set TheRange = Range(Cells(1, 1), Cells(10, 10)) TheRange.Value = MyArray End With try: With wks Set TheRange = .Range(.Cells(1, 1), .Cells(10, 10)) TheRange.Value = MyArr End With Regards Claus Busch -- Win XP PRof SP2 / Vista Ultimate SP2 Office 2003 SP2 /2007 Ultimate SP2 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find specific value in array of array formula | Excel Worksheet Functions | |||
select range of specific hidden worksheet of closed protected work | Excel Programming | |||
Navigate to specific cell on specific worksheet | Excel Programming | |||
UDF to reference a specific element in an array | Excel Programming | |||
Select an array of cells and paste to separate worksheet - 2nd post - 1st didn't work!! | Excel Programming |