+ Reply to Thread
Results 1 to 3 of 3

vba autofilter, copy, paste to another workbook(sheet1), hide the cell

  1. #1
    Registered User
    Join Date
    07-16-2012
    Location
    boston, ma
    MS-Off Ver
    Excel 2010
    Posts
    25

    vba autofilter, copy, paste to another workbook(sheet1), hide the cell

    Hey all,

    Another odd request I cannot seem to figure without recording a lengthy macro.

    I have attached the source and destination sheets.

    I would like to write a code that would filter column g to show only the available people copy columns a-g in the masterfile and paste to the destination file in the first sheet "monday 830", the first row of titles doesnt have to be copied in each time, it will always be the same.

    Then, as i could figure, i would have to clear the filter in column g, hide the column so i could then filter column h to show who is available, copy and paste to destination sheet in sheet name monday 955.

    any suggestions? i cannot find anything and the recorded macro is in the masterfile as a macro titled exportByday if that helps at all!

    also, hoping to just paste over the data that exists in the sheet each time to avoid any duplicates!

    Transportation Masterfile-fix.xlsmTransportation availability by time-UPDATED.xlsx

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: vba autofilter, copy, paste to another workbook(sheet1), hide the cell

    Hi lax2734,

    I've created a macro to convert your type of cross tab data to a real Excel table. I've included it in the attached. See the screencast to see how I'd do this problem.
    http://screencast.com/t/NRZNP3yBNTi
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-16-2012
    Location
    boston, ma
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: vba autofilter, copy, paste to another workbook(sheet1), hide the cell

    MarvinP, thank you so much for this, i am not sure why it never crossed my mind to create a table! I tried looking at the screencast and it came up blank, id love to see it!

    THank you again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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