Calling Mark o brien!

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Of course I'm here.

Do you just need help with that last post you had on the other thread? (I was working in another State that week, hence the reason I didn't answer a couple of weeks ago)
 
Upvote 0
Hi Mark!

Yes, I am not sure how now to assign the values to the new array we have defined, or how to put the new array onto the spreadsheet.

Before we had just arr1, arr2 etc. but now we have arr(1) arr(2) so it is quite confusing for me how to do it properly.

Thanks again,

RET79
 
Upvote 0
Does this work ok?

<pre>
'This would do all of the Debug.Print statements
For j = 3 To zm(i)
Debug.Print rngMonth(i)(k, 1)
Next</pre>

..taken from the code I suggested as an example.
 
Upvote 0
Hehe, well I'm a bit nocturnal these days as I'm in the middle of exams so I sleep when I like and study when I like. hehe.

Don't worry, no rush with that thing.

RET79
 
Upvote 0
Hi there.

If Mark o Brien or anyone else out there can help me finish off this problem then I would be most grateful.

It is this line which is causing me distress:

arrcells1(k - 1, cellx - 1) = Cells(rngcells1(cellx + 1, 2), rngcells1(cellx + 1, 3)).Offset(0, tl8 * (k - 1)).Value


rngcells1 and arrcells1 were defined the old way here. Now we have got rngcells(i) so logically speaking you are looking at setting up arrcells(i)(k-1,cellx-1) here but of course this does not work in VBA.

RET79
 
Upvote 0
On 2002-05-02 10:08, RET79 wrote:
Hi there.

If Mark o Brien or anyone else out there can help me finish off this problem then I would be most grateful.

It is this line which is causing me distress:

arrcells1(k - 1, cellx - 1) = Cells(rngcells1(cellx + 1, 2), rngcells1(cellx + 1, 3)).Offset(0, tl8 * (k - 1)).Value


rngcells1 and arrcells1 were defined the old way here. Now we have got rngcells(i) so logically speaking you are looking at setting up arrcells(i)(k-1,cellx-1) here but of course this does not work in VBA.

RET79

For instance, I want this


arrcells(i)(k - 1, cellx - 1) = Cells(rngcells(i)(cellx + 1, 2), rngcells(i)(cellx + 1, 3)).Offset(0, tl8 * (k - 1)).Value


but this doesnt work for some reason, maybe arrcells is not defined correctly??

RET79
 
Upvote 0
OK, my final call for this topic, if anyone can help me sort it I would be so grateful.

RET79
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,301
Members
448,885
Latest member
LokiSonic

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top