+ Reply to Thread
Results 1 to 2 of 2

Erstellung eines Arrays mit schleife

  1. #1
    Registered User
    Join Date
    09-27-2009
    Location
    Maastricht, NL
    MS-Off Ver
    Excel 2007
    Posts
    5

    Erstellung eines Arrays mit schleife

    Hallo miteinander,

    ich habe gerade erst angefangen mich mit der Thematik VBA zu beschäftigen und möchte in meiner Haushaltsliste ein Macro zum Laufen bringen, was bisher jedoch nicht erfolgreich war. Ich habe 31 Labels erstellt, die in Spalte 9 Worksheet 3 angegeben werden können. Ich bin bestrebt, dass die Farbkennung der Labels mit der Zellfarbe in der Spalte automatisiert wird und hoffe, mir kann jemand mit etwas Expertise helfen dies zu Codieren.
    Erstmal die 6 Gruppen von Elementen, die ich erstellt habe mit den dazugehörigen Zellfarben:

    Gr.1: E1,E2,E3,EE1,EE2,EE3,EE4 (RGB(0, 128, 0)/Index Nr.10)
    Gr.2: T1,T2,T3,T4,T5,TT1,TT2,TT3 (RGB(0, 204, 255)/Index Nr.28)
    Gr.3: Z1,Z2,Z3 (RGB(153, 51, 0)/Index Nr.53)
    Gr.4: U1,U2,U3 (RGB(153, 51, 102)/Index Nr.54)
    Gr.5: K,TEC,NEC (RGB(51, 51, 51)/Index Nr.56)
    Gr.6: STR,ENT,KUR,SOF,SER,ORG,RE (RGB(255, 0, 0)/Index Nr.3)

    Ich habe einen gebrechlichen Anfang gewagt mit einem Do While Loop ohne Dim oder Arrayparameter... Funktioniert leider nicht und ich wäre Dankbar über den ein oder anderen Tipp, was ich berücksichtigen muss und welche Formeln angebracht sind. Ich bin sicher, einiges mehr berücksichtigen zu müssen und wäre dankbar für einen Anhaltspunkt betrefflich der Realisierung eines solchen VBA Arrays für ersteinmal ein oder 2 solcher Labels. Bei Löschung des Labels sollte die Zelle wieder auf die Standardfarbe Weiß wechseln.

    Please Login or Register  to view this content.
    Soweit erstmal....
    Geldhaushalt.xlsm

    Danke im Vorraus!
    Last edited by alansidman; 09-15-2014 at 08:25 AM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Erstellung eines Arrays mit Schleife ?

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Declaring multiple multi-dimensional arrays (jagged arrays) - compile error?
    By dfribush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2013, 05:06 PM
  2. vba compare arrays and remove exact matching arrays
    By jacojvv in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-25-2013, 07:30 AM
  3. [SOLVED] New to arrays-where do I find a good beginners guide to multi dimensional arrays
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-04-2013, 07:44 PM
  4. auslesen aus eines dsf Datei
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2005, 04:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1