Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multidimensional array problem in Excel VBA

Status
Not open for further replies.

rumceisz

IS-IT--Management
Apr 23, 2012
1
HU
Hi All,

I have the following problem: I made a form feed for my HR department colleagues. This excel contains a sheets which is a form for the new colleagues. When the HR colleague choose a postion and knock the button, the macro fill the form with data related to the chosen position.
But there is a part which I couldn't achieve: there are Tasks, Subtasks, Sub-Subtasks in most of the positions and I'd like to list these strucuture in the form like this (see attached xls Template sheet):
SubtaskX
Sub-SubtaskZ
description
Sub-SubtaskU
description
description
.....
SubtaskY
Sub-SubtaskP
desc..

I tried to use multidimensional array but it didn't work, I got error maybe I missed something.

Can you please suggest?
The most easy to understand is to see the attached excel file Template sheet!

+ question: I'd like to fill an array from a column but there are many redundant values. How can I make an array from the column with unique values? See sheet1!

Thanks in advance!

Best regards,
Rumi
 


hi,

1. Please post VBA question in forum707.

2. As some of us cannot download files due to company security restrictions, please post ALL your examples directly here, using TGML Tags. If you don't know what TGML Tags are, do a FIND on this web page for TGML and look for the CODE tag and the TT tag for posting columnnar data.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top