[belajar-excel] data tampil pada list box [1 Attachment]

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[belajar-excel] data tampil pada list box [1 Attachment]

HAIRUL ALAM
Salam Para Master yang Baik
Terlampir data yang saya mau tampilkan ke listbox, bagaimana code macronya karena dengan menggunakan code macro ;
Sub Listbox()    Data = "C2:C20"  ListBox1.ColumnCount = 1  ListBox1.RowSource = Data
End Sub
tidak berfungsi, mohon Pencerahannya
Terimakasih Banyak
AssalamualaikumHairul Alam

=?UTF-8?b?ZGF0YSB0YW1waWwgcGFkYSBsaXN0IGJveC54bHNt?= (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [belajar-excel] data tampil pada list box

Agus-2
Dear Hairul,

Kenapa harus pakai macro?
Bukankah lebih mudah dengan Format Control?
(Klik kanan di list box, pilih format control, KLik tab Control, isi
Input range dengan C2:C5)

Jika memaksa menggunakan vba berarti cekripnya harusnya sama dengan cara
di atas, yaitu:

Worksheets("data").Shapes("List Box 1").ControlFormat.ListFillRange =
"C2:C5"

Perlu dibedakan antara List Box format control dan ListBox ActiveX Control.

Regard
NangAgus

On 9/15/2019 17:01, HAIRUL ALAM [hidden email] [belajar-excel] wrote:

> Salam Para Master yang Baik
>
> Terlampir data yang saya mau tampilkan ke listbox, bagaimana code
> macronya karena dengan menggunakan code macro ;
>
> Sub Listbox()
>   Data = "C2:C20"
>   ListBox1.ColumnCount = 1
>   ListBox1.RowSource = Data
>
> End Sub
>
> tidak berfungsi, mohon Pencerahannya
>
> Terimakasih Banyak
>
> Assalamualaikum
> Hairul Alam
>
>



hibnphhhnmcinjll.jpg (139K) Download Attachment
list.jpg (139K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [belajar-excel] data tampil pada list box [1 Attachment]

HAIRUL ALAM
 Salam Mas Agus
Terimakasih banyak pencerahannya
AssalamualaikumHairul Alam
    Pada Minggu, 15 September 2019 21.48.59 GMT+7, Agus [hidden email] [belajar-excel] <[hidden email]> menulis:

  

Dear Hairul,
  Kenapa harus pakai macro? Bukankah lebih mudah dengan Format Control? (Klik kanan di list box, pilih format control, KLik tab Control, isi Input range dengan C2:C5)
  Jika memaksa menggunakan vba berarti cekripnya harusnya sama dengan cara di atas, yaitu:

  Worksheets("data").Shapes("List Box 1").ControlFormat.ListFillRange = "C2:C5"

  Perlu dibedakan antara List Box format control dan ListBox ActiveX Control.
  Regard NangAgus

  On 9/15/2019 17:01, HAIRUL ALAM [hidden email] [belajar-excel] wrote:

     Salam Para Master yang Baik
  Terlampir data yang saya mau tampilkan ke listbox, bagaimana code macronya karena dengan menggunakan code macro ;
    Sub Listbox()      Data = "C2:C20"   ListBox1.ColumnCount = 1   ListBox1.RowSource = Data
  End Sub
  tidak berfungsi, mohon Pencerahannya
  Terimakasih Banyak
  Assalamualaikum Hairul Alam




  #yiv8468672139 #yiv8468672139 -- #yiv8468672139ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv8468672139 #yiv8468672139ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv8468672139 #yiv8468672139ygrp-mkp #yiv8468672139hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv8468672139 #yiv8468672139ygrp-mkp #yiv8468672139ads {margin-bottom:10px;}#yiv8468672139 #yiv8468672139ygrp-mkp .yiv8468672139ad {padding:0 0;}#yiv8468672139 #yiv8468672139ygrp-mkp .yiv8468672139ad p {margin:0;}#yiv8468672139 #yiv8468672139ygrp-mkp .yiv8468672139ad a {color:#0000ff;text-decoration:none;}#yiv8468672139 #yiv8468672139ygrp-sponsor #yiv8468672139ygrp-lc {font-family:Arial;}#yiv8468672139 #yiv8468672139ygrp-sponsor #yiv8468672139ygrp-lc #yiv8468672139hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv8468672139 #yiv8468672139ygrp-sponsor #yiv8468672139ygrp-lc .yiv8468672139ad {margin-bottom:10px;padding:0 0;}#yiv8468672139 #yiv8468672139actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv8468672139 #yiv8468672139activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv8468672139 #yiv8468672139activity span {font-weight:700;}#yiv8468672139 #yiv8468672139activity span:first-child {text-transform:uppercase;}#yiv8468672139 #yiv8468672139activity span a {color:#5085b6;text-decoration:none;}#yiv8468672139 #yiv8468672139activity span span {color:#ff7900;}#yiv8468672139 #yiv8468672139activity span .yiv8468672139underline {text-decoration:underline;}#yiv8468672139 .yiv8468672139attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv8468672139 .yiv8468672139attach div a {text-decoration:none;}#yiv8468672139 .yiv8468672139attach img {border:none;padding-right:5px;}#yiv8468672139 .yiv8468672139attach label {display:block;margin-bottom:5px;}#yiv8468672139 .yiv8468672139attach label a {text-decoration:none;}#yiv8468672139 blockquote {margin:0 0 0 4px;}#yiv8468672139 .yiv8468672139bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv8468672139 .yiv8468672139bold a {text-decoration:none;}#yiv8468672139 dd.yiv8468672139last p a {font-family:Verdana;font-weight:700;}#yiv8468672139 dd.yiv8468672139last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv8468672139 dd.yiv8468672139last p span.yiv8468672139yshortcuts {margin-right:0;}#yiv8468672139 div.yiv8468672139attach-table div div a {text-decoration:none;}#yiv8468672139 div.yiv8468672139attach-table {width:400px;}#yiv8468672139 div.yiv8468672139file-title a, #yiv8468672139 div.yiv8468672139file-title a:active, #yiv8468672139 div.yiv8468672139file-title a:hover, #yiv8468672139 div.yiv8468672139file-title a:visited {text-decoration:none;}#yiv8468672139 div.yiv8468672139photo-title a, #yiv8468672139 div.yiv8468672139photo-title a:active, #yiv8468672139 div.yiv8468672139photo-title a:hover, #yiv8468672139 div.yiv8468672139photo-title a:visited {text-decoration:none;}#yiv8468672139 div#yiv8468672139ygrp-mlmsg #yiv8468672139ygrp-msg p a span.yiv8468672139yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv8468672139 .yiv8468672139green {color:#628c2a;}#yiv8468672139 .yiv8468672139MsoNormal {margin:0 0 0 0;}#yiv8468672139 o {font-size:0;}#yiv8468672139 #yiv8468672139photos div {float:left;width:72px;}#yiv8468672139 #yiv8468672139photos div div {border:1px solid #666666;min-height:62px;overflow:hidden;width:62px;}#yiv8468672139 #yiv8468672139photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv8468672139 #yiv8468672139reco-category {font-size:77%;}#yiv8468672139 #yiv8468672139reco-desc {font-size:77%;}#yiv8468672139 .yiv8468672139replbq {margin:4px;}#yiv8468672139 #yiv8468672139ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv8468672139 #yiv8468672139ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv8468672139 #yiv8468672139ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv8468672139 #yiv8468672139ygrp-mlmsg select, #yiv8468672139 input, #yiv8468672139 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv8468672139 #yiv8468672139ygrp-mlmsg pre, #yiv8468672139 code {font:115% monospace;}#yiv8468672139 #yiv8468672139ygrp-mlmsg * {line-height:1.22em;}#yiv8468672139 #yiv8468672139ygrp-mlmsg #yiv8468672139logo {padding-bottom:10px;}#yiv8468672139 #yiv8468672139ygrp-msg p a {font-family:Verdana;}#yiv8468672139 #yiv8468672139ygrp-msg p#yiv8468672139attach-count span {color:#1E66AE;font-weight:700;}#yiv8468672139 #yiv8468672139ygrp-reco #yiv8468672139reco-head {color:#ff7900;font-weight:700;}#yiv8468672139 #yiv8468672139ygrp-reco {margin-bottom:20px;padding:0px;}#yiv8468672139 #yiv8468672139ygrp-sponsor #yiv8468672139ov li a {font-size:130%;text-decoration:none;}#yiv8468672139 #yiv8468672139ygrp-sponsor #yiv8468672139ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv8468672139 #yiv8468672139ygrp-sponsor #yiv8468672139ov ul {margin:0;padding:0 0 0 8px;}#yiv8468672139 #yiv8468672139ygrp-text {font-family:Georgia;}#yiv8468672139 #yiv8468672139ygrp-text p {margin:0 0 1em 0;}#yiv8468672139 #yiv8468672139ygrp-text tt {font-size:120%;}#yiv8468672139 #yiv8468672139ygrp-vital ul li:last-child {border-right:none !important;}#yiv8468672139

hibnphhhnmcinjll.jpg (138K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [belajar-excel] data tampil pada list box [2 Attachments]

HAIRUL ALAM
 Salam Mas Nang Agus
bagaimana agar tampilannya bisa nyambung kebawa jika datanya panjang
Terlampir contoh tampilannya
Terimakasih
Assalamualaikum    Pada Minggu, 15 September 2019 22.38.41 WIB, HAIRUL ALAM <[hidden email]> menulis:

  Salam Mas Agus
Terimakasih banyak pencerahannya
AssalamualaikumHairul Alam
    Pada Minggu, 15 September 2019 21.48.59 GMT+7, Agus [hidden email] [belajar-excel] <[hidden email]> menulis:

  

Dear Hairul,
  Kenapa harus pakai macro? Bukankah lebih mudah dengan Format Control? (Klik kanan di list box, pilih format control, KLik tab Control, isi Input range dengan C2:C5)
  Jika memaksa menggunakan vba berarti cekripnya harusnya sama dengan cara di atas, yaitu:

  Worksheets("data").Shapes("List Box 1").ControlFormat.ListFillRange = "C2:C5"

  Perlu dibedakan antara List Box format control dan ListBox ActiveX Control.
  Regard NangAgus

  On 9/15/2019 17:01, HAIRUL ALAM [hidden email] [belajar-excel] wrote:

     Salam Para Master yang Baik
  Terlampir data yang saya mau tampilkan ke listbox, bagaimana code macronya karena dengan menggunakan code macro ;
    Sub Listbox()      Data = "C2:C20"   ListBox1.ColumnCount = 1   ListBox1.RowSource = Data
  End Sub
  tidak berfungsi, mohon Pencerahannya
  Terimakasih Banyak
  Assalamualaikum Hairul Alam




  #yiv7915329815 -- #yiv7915329815ygrp-mkp {border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv7915329815 #yiv7915329815ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv7915329815 #yiv7915329815ygrp-mkp #yiv7915329815hd {color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}#yiv7915329815 #yiv7915329815ygrp-mkp #yiv7915329815ads {margin-bottom:10px;}#yiv7915329815 #yiv7915329815ygrp-mkp .yiv7915329815ad {padding:0 0;}#yiv7915329815 #yiv7915329815ygrp-mkp .yiv7915329815ad p {margin:0;}#yiv7915329815 #yiv7915329815ygrp-mkp .yiv7915329815ad a {color:#0000ff;text-decoration:none;}#yiv7915329815 #yiv7915329815ygrp-sponsor #yiv7915329815ygrp-lc {font-family:Arial;}#yiv7915329815 #yiv7915329815ygrp-sponsor #yiv7915329815ygrp-lc #yiv7915329815hd {margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}#yiv7915329815 #yiv7915329815ygrp-sponsor #yiv7915329815ygrp-lc .yiv7915329815ad {margin-bottom:10px;padding:0 0;}#yiv7915329815 #yiv7915329815actions {font-family:Verdana;font-size:11px;padding:10px 0;}#yiv7915329815 #yiv7915329815activity {background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv7915329815 #yiv7915329815activity span {font-weight:700;}#yiv7915329815 #yiv7915329815activity span:first-child {text-transform:uppercase;}#yiv7915329815 #yiv7915329815activity span a {color:#5085b6;text-decoration:none;}#yiv7915329815 #yiv7915329815activity span span {color:#ff7900;}#yiv7915329815 #yiv7915329815activity span .yiv7915329815underline {text-decoration:underline;}#yiv7915329815 .yiv7915329815attach {clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}#yiv7915329815 .yiv7915329815attach div a {text-decoration:none;}#yiv7915329815 .yiv7915329815attach img {border:none;padding-right:5px;}#yiv7915329815 .yiv7915329815attach label {display:block;margin-bottom:5px;}#yiv7915329815 .yiv7915329815attach label a {text-decoration:none;}#yiv7915329815 blockquote {margin:0 0 0 4px;}#yiv7915329815 .yiv7915329815bold {font-family:Arial;font-size:13px;font-weight:700;}#yiv7915329815 .yiv7915329815bold a {text-decoration:none;}#yiv7915329815 dd.yiv7915329815last p a {font-family:Verdana;font-weight:700;}#yiv7915329815 dd.yiv7915329815last p span {margin-right:10px;font-family:Verdana;font-weight:700;}#yiv7915329815 dd.yiv7915329815last p span.yiv7915329815yshortcuts {margin-right:0;}#yiv7915329815 div.yiv7915329815attach-table div div a {text-decoration:none;}#yiv7915329815 div.yiv7915329815attach-table {width:400px;}#yiv7915329815 div.yiv7915329815file-title a, #yiv7915329815 div.yiv7915329815file-title a:active, #yiv7915329815 div.yiv7915329815file-title a:hover, #yiv7915329815 div.yiv7915329815file-title a:visited {text-decoration:none;}#yiv7915329815 div.yiv7915329815photo-title a, #yiv7915329815 div.yiv7915329815photo-title a:active, #yiv7915329815 div.yiv7915329815photo-title a:hover, #yiv7915329815 div.yiv7915329815photo-title a:visited {text-decoration:none;}#yiv7915329815 div#yiv7915329815ygrp-mlmsg #yiv7915329815ygrp-msg p a span.yiv7915329815yshortcuts {font-family:Verdana;font-size:10px;font-weight:normal;}#yiv7915329815 .yiv7915329815green {color:#628c2a;}#yiv7915329815 .yiv7915329815MsoNormal {margin:0 0 0 0;}#yiv7915329815 o {font-size:0;}#yiv7915329815 #yiv7915329815photos div {float:left;width:72px;}#yiv7915329815 #yiv7915329815photos div div {border:1px solid #666666;min-height:62px;overflow:hidden;width:62px;}#yiv7915329815 #yiv7915329815photos div label {color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}#yiv7915329815 #yiv7915329815reco-category {font-size:77%;}#yiv7915329815 #yiv7915329815reco-desc {font-size:77%;}#yiv7915329815 .yiv7915329815replbq {margin:4px;}#yiv7915329815 #yiv7915329815ygrp-actbar div a:first-child {margin-right:2px;padding-right:5px;}#yiv7915329815 #yiv7915329815ygrp-mlmsg {font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}#yiv7915329815 #yiv7915329815ygrp-mlmsg table {font-size:inherit;font:100%;}#yiv7915329815 #yiv7915329815ygrp-mlmsg select, #yiv7915329815 input, #yiv7915329815 textarea {font:99% Arial, Helvetica, clean, sans-serif;}#yiv7915329815 #yiv7915329815ygrp-mlmsg pre, #yiv7915329815 code {font:115% monospace;}#yiv7915329815 #yiv7915329815ygrp-mlmsg * {line-height:1.22em;}#yiv7915329815 #yiv7915329815ygrp-mlmsg #yiv7915329815logo {padding-bottom:10px;}#yiv7915329815 #yiv7915329815ygrp-msg p a {font-family:Verdana;}#yiv7915329815 #yiv7915329815ygrp-msg p#yiv7915329815attach-count span {color:#1E66AE;font-weight:700;}#yiv7915329815 #yiv7915329815ygrp-reco #yiv7915329815reco-head {color:#ff7900;font-weight:700;}#yiv7915329815 #yiv7915329815ygrp-reco {margin-bottom:20px;padding:0px;}#yiv7915329815 #yiv7915329815ygrp-sponsor #yiv7915329815ov li a {font-size:130%;text-decoration:none;}#yiv7915329815 #yiv7915329815ygrp-sponsor #yiv7915329815ov li {font-size:77%;list-style-type:square;padding:6px 0;}#yiv7915329815 #yiv7915329815ygrp-sponsor #yiv7915329815ov ul {margin:0;padding:0 0 0 8px;}#yiv7915329815 #yiv7915329815ygrp-text {font-family:Georgia;}#yiv7915329815 #yiv7915329815ygrp-text p {margin:0 0 1em 0;}#yiv7915329815 #yiv7915329815ygrp-text tt {font-size:120%;}#yiv7915329815 #yiv7915329815ygrp-vital ul li:last-child {border-right:none !important;}#yiv7915329815

=?UTF-8?b?dGFtcGlsa2FuIGRhdGEga2UgbGlzdCBib3gueGxzeA==?= (18K) Download Attachment
hibnphhhnmcinjll.jpg (138K) Download Attachment