+ Reply to Thread
Results 1 to 4 of 4

VBA Code to Copy Entire Worksheet to New Worksheet with Row Exceptions

  1. #1
    Registered User
    Join Date
    08-23-2014
    Location
    US
    MS-Off Ver
    2010 & 2011
    Posts
    2

    VBA Code to Copy Entire Worksheet to New Worksheet with Row Exceptions

    Any help offered will be much appreciated. I have a purchasing log with checkboxes. If product is received in Full checkbox is ticked (column "O"), & if shipment was incomplete a different checkbox is ticked (column "P"). Both checkboxes are liked to cells for "True"/"False" values (cells in column "O" linked to relative cells in column "AS" & cells in column "P" linked to relative cells in column "AT') My general idea is to add a button to click at the end of the month to copy the entire worksheet (May Log) to a new worksheet, with the exception of the rows where product was received in full, & change the name to the next month (June Log). Please Help!!

    Also Cross-posted: http://www.mrexcel.com/forum/excel-q...xceptions.html

    So after days of searching this is the code I have come up with:
    Sub Macro9()
    '
    ' Macro9 Macro
    '

    '
    Cells.Select
    Selection.Copy
    Sheets.Add(After) = Sheets1
    Sheets("Sheet2").Select
    If Range("AS:AS") = "True" Then
    Column("AS" + Row).Select
    Selection.Delete Shift:=xlUp
    End If
    End Sub

    However the code breaks @ Column!!

    Anyone able to help?
    Attached Files Attached Files
    Last edited by asturgill; 08-24-2014 at 04:24 PM. Reason: more detail & admin asked to change title

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: New To VBA Any Help Would Be Appreciated!!!

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-23-2014
    Location
    US
    MS-Off Ver
    2010 & 2011
    Posts
    2

    Re: New To VBA Any Help Would Be Appreciated!!!

    Sorry for the earlier title.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: VBA Code to Copy Entire Worksheet to New Worksheet with Row Exceptions

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Crossposted: http://www.mrexcel.com/forum/excel-q...xceptions.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Got there in the end. Any help appreciated! :)
    By ExceI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2010, 11:46 AM
  2. Somebody help me please - any help much appreciated!
    By bubbleou in forum Excel General
    Replies: 1
    Last Post: 03-28-2007, 03:13 PM
  3. Bug help appreciated
    By peter.thompson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2007, 06:24 PM
  4. Any help much appreciated
    By Ryk in forum Excel General
    Replies: 0
    Last Post: 07-31-2006, 12:03 PM
  5. Can't quite get what I want with bar chart; help appreciated
    By Newsman in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-08-2006, 08:40 PM

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