![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Hi there.
If Mark o Brien is out there, would he be kind enough to help me finish off the 'tedious definitions' message in which he gave me some great advice a month or so ago. http://www.mrexcel.com/board/viewtop...rum=2&start=10 Thanks! |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
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) |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
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 |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Damn, I was hoping you wouldn't be online right now.
What the hell are you doing up at 2.30am? |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Does this work ok?
..taken from the code I suggested as an example. |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
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 |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
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 |
|
|
|
|
|
#8 | |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
Quote:
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 |
|
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Mar 2002
Location: England, UK.
Posts: 526
|
OK, my final call for this topic, if anyone can help me sort it I would be so grateful.
RET79 |
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Is there anything in that Excel 2000 book about arrays? That's going to be a better help then me.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|