Listbox list to create new workbook.

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Hello,
Is it possible to create a new excel file with listbox list?
Once we click the button it will ask where to save those listbox datas..
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Of course it is, it would be good your current set-up and what you intend to achieve
 
Upvote 0
If anyone help me out will be gladly appreciated.
So far I try this way but it does not work:(

Code:
Private Sub CommandButton6_Click()

Dim ws As Workbook
Dim rng As Range
Dim i As Long
Dim J As Long


Set ws = Workbook.Add
Set rng = ws.Range("A1")
For i = 0 To ListBox3.ColumnCount - 1
For J = 0 To ListBox3.ListCount - 1
rng.Offset(J, i) = ListBox3.Column(i, J)
Next J
Next i


End Sub

Momentman I can PM what I would achieve or not!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

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