nagovind Member Aug 31, 2016 #1 Please advise how to Display Part of Excel on VBA Form I have range of data in A1:F10 While running a macro how to display selected ranges of cells in an userform as a pop-up (Say selected data is A1:C10) Please do the needful Thanks Govind
Please advise how to Display Part of Excel on VBA Form I have range of data in A1:F10 While running a macro how to display selected ranges of cells in an userform as a pop-up (Say selected data is A1:C10) Please do the needful Thanks Govind
nagovind Member Aug 31, 2016 #2 This code is working for me (taken from example worksheet from other thread by HUI -> Sample_file_pk_Hui.xlsm Code: Sub preview() UserForm1.ListBox1.ColumnCount = 5 UserForm1.ListBox1.List = Worksheets("Sheet1").Range("A1:E10").Value UserForm1.Show End Sub Last edited by a moderator: Sep 2, 2016
This code is working for me (taken from example worksheet from other thread by HUI -> Sample_file_pk_Hui.xlsm Code: Sub preview() UserForm1.ListBox1.ColumnCount = 5 UserForm1.ListBox1.List = Worksheets("Sheet1").Range("A1:E10").Value UserForm1.Show End Sub