+ Reply to Thread
Results 1 to 4 of 4

Code clean up for workbook to workbook copy

Hybrid View

bowhunt24 Code clean up for workbook to... 11-10-2011, 03:30 PM
arthurbr Re: Code clean up for... 11-10-2011, 04:01 PM
bowhunt24 Re: Code clean up for... 11-10-2011, 04:05 PM
bowhunt24 Re: Code clean up for... 11-10-2011, 03:55 PM
  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    24

    Code clean up for workbook to workbook copy

    Hello...I have two similar workbooks. One will be distributed to various people and one will be a master. On a weekly basis all the individual sheets will be sent to the controller and will be consolidated into the master sheet....working on a macro that will be embedded in the sheet so that the controller can hit a button and easily move all the data over to the master sheet (of course assuming that both workbooks are open).

    Here is the code I have to start with:

    Sub MOVE()
    '
    ' MOVE Macro
    '
    
    '
        Range("B5:O9").Select
        Selection.Copy
        Windows("MASTER NE METRO SB TRACKER ver 1.3.xlsm").Activate
        Application.WindowState = xlMinimized
        Range("B9").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Range("B5").Select
        Windows("NE METRO SB TRACKER ver 1.3.xlsm").Activate
    End Sub
    A couple things I would like for it to do that I can't figure out how to program...
    1) Copy any entered data, excluding blanks. Each sheet will have a different amount of "leads" so I can't just set it to copy the same range every time.

    2) When it copies to the Master Sheet, it starts copying at the first available slot. Again, I can't set it to start pasting to a certain cell as that cell may already be full with data from a previous move.

    Hope this makes sense! I've uploaded both sheets too to make it easier.

    Thanks for all the help
    Evan
    Last edited by bowhunt24; 11-10-2011 at 03:54 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Code clean up for workbook to workbook copy

    Also read the red couloured sentence in my sig...

  3. #3
    Registered User
    Join Date
    11-08-2011
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Code clean up for workbook to workbook copy

    Wow...I'm zero for two today. Good work me.....

    Sorry again...

  4. #4
    Registered User
    Join Date
    11-08-2011
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Code clean up for workbook to workbook copy

    Quote Originally Posted by arthurbr View Post
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Sorry....I'll fixed up. I'll make sure to do that in the future. I'm a n00b!!!!! Ahhhhh!!!!

+ 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