+ Reply to Thread
Results 1 to 7 of 7

VBA Extract Data to new worksheet thro combobox

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    VBA Extract Data to new worksheet thro combobox

    Goodevening all

    Dear expert's

    help me

    I have 2 Sheet (sheet2 and week) i want split and move week nos data's to new sheet through combobox value

    data are in week sheet i can assign the values from sheet2 through userform combox

    if I select week1 then click command button then range A:E should move new sheet in next to week sheet

    once sheet create week1 that week sheet should hide

    thanks all
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: VBA Extract Data to new worksheet thro combobox

    What should the new tab be named?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: VBA Extract Data to new worksheet thro combobox

    As What Value Be selected in combobox will be sheet name? if wk-1 select in combo sheet name will be wk-1

    thanks

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: VBA Extract Data to new worksheet thro combobox

    Double click on the command button on your form and enter this code -
    Dim lrow As Long
    
    Worksheets.Add(after:=Worksheets(Worksheets.Count)).Name = ComboBox1.Value
    With Worksheets("Week")
        lrow = .Range("A" & .Rows.Count).End(xlUp).Row
        .Range("A1:E" & lrow).AutoFilter field:=1, Criteria1:=ComboBox1.Value
        .Range("A1:E" & lrow).SpecialCells(xlCellTypeVisible).Copy Worksheets(ComboBox1.Value).Range("A1")
        Unload Me
        .Range("A1:E" & lrow).AutoFilter
        .Visible = False
    End With

  5. #5
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: VBA Extract Data to new worksheet thro combobox

    Thanks Dude Perfect Code !!!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: VBA Extract Data to new worksheet thro combobox

    I would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

  7. #7
    Forum Contributor
    Join Date
    07-21-2011
    Location
    Bangalore,India
    MS-Off Ver
    Excel 2007,2010,2016
    Posts
    695

    Re: VBA Extract Data to new worksheet thro combobox

    Sure dude words is mightier than Icon starts ...Your r excel start ...dude i still looking for solution with this post if you can solve this i really greateful to you
    http://www.excelforum.com/excel-prog...50#post3281350
    thanks for spending your valuable time to me...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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