daten aus zelle auslesen

methode2404

New Member
Joined
Sep 3, 2018
Messages
30
Hallo zusammen,

Habe ein problem, komme nicht mehr weiter.

In eine zelle sind die namen aufgelistet. (Zb. 1-Hans,2-Albert,3-Susanne,4-Helmut usw.)
Ich benoetige ein VBA der mir das zerstueckelt (mit formel wuerde das wohl nicht hinklappen)

Also in B4 soll mir das VBA von "1-" bis "," reinschreiben
B5 soll mir das VBA von "2-" bis "," reinschreiben
B6 soll mir das VBA von "3-" bis "," reinschreiben
B7 soll mir das VBA von "4-" bis "," reinschreiben usw.

Wenn das moeglich ist, wuerde ich meine anfrage erweitern :)
vba koennte mich nach ne input fragen, und die namen so oft untereinander schreiben.

Also wenn ich ein 5 eingebe ; Soll von der erste name 5 mal eingetragen (also von B4 bis B8)
der zweite name von B9 bis B13 usw.

Vielen Dank im voraus an alle

Gruss
Metin
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Können Sie das bitte auf Englisch erklären?

Ihr bildschirm ist nicht sichtbar, brauchen sie ein besseres beispiel

Danke und Tuss,
Jack (with assistance from Google Translate)
 
Last edited:
Upvote 0
Vielleicht?

Code:
Sub hmm()


    Dim i As Long
    Dim lWieViele As Long
    Dim zelErste As Excel.Range
    Dim listInput As Variant
    
    lWieViele = VBA.InputBox(Prompt:="Wie viele")
    
    listInput = Split(Range("A1").Value2, ",") 'Mit list: 1-Hans, 2-Albert, 3-Susanne, 4-Helmut
    Set zelErste = Range("B4")
    
    For i = LBound(listInput) To UBound(listInput)
        zelErste.Offset(i * lWieViele).Resize(lWieViele).Value2 = listInput(i)
    Next i
    
End Sub

PS. Google translate für mich auch :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,114,002
Members
448,543
Latest member
MartinLarkin

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