+ Reply to Thread
Results 1 to 6 of 6

copy and paste macro!

  1. #1
    Registered User
    Join Date
    12-20-2008
    Location
    Idaho
    Posts
    6

    copy and paste macro!

    I am making a scheduling sheet with excel and am having problems when I cut or copy and paste cells from one "Machine" to another "Machine".
    Machines are referenced on the attachment as "Machine #1 and Machine #2.
    Each machine has 2 variable cells. One is a "date" and one is "hours".
    Each "machine" has 5 rows and 8 colums for entering data.
    There are 18 machines total on the worksheet. 5 "machines" in the first column(s), 5 "machines" in the next column(s) over and 3 "machines" in the column(s) after that. I will be adding more "machines" as needed. Each "machine" is formated the same with the same amount of cells etc.
    I want to be able to move one or more "jobs" from one "machine" to another "machine".
    When I copy or cut and paste the information to the next machine I want the reference in the formula to use the variables in the "machine" I move it to. (Hopefully somehting in the formula and automatic ut I will take any advice I can get)

    I hope that this is explained better in the example I have attached. I have attached it in pdf format but can attach it in another format if that would help.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by lfourtner; 12-25-2008 at 04:46 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I have attached it in pdf format but can attach it in another format
    A workbook?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-20-2008
    Location
    Idaho
    Posts
    6

    Here is the workbook.

    I have attached the actual workbook I am working with. There are hidden cells with calculations in them just so you know if you need to unhide them.

    Thank you!

    This another forum I have posted this on:
    http://www.mrexcel.com/forum/showthread.php?t=360980
    Attached Files Attached Files
    Last edited by lfourtner; 12-25-2008 at 08:17 PM. Reason: Added link to other post per rule #8

  4. #4
    Registered User
    Join Date
    12-20-2008
    Location
    Idaho
    Posts
    6
    Bump No respone yet

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492
    Do the first machine setup properly, but manually, and remove the $ signs from the K2 ad F2 references so they become relative (changing when copied) references. But you have to manually setup the whole first machine.

    Then copy those range sets to the next machine and they will all point to the correct relative position in the new machine set.

    I would also build into the formulas some "checks" so if there is no data the row shows blank without having to delete the cell formulas.

    Please Login or Register  to view this content.
    I noticed you have two "sizes" of charts, you'll have to manually set one up for each chart size, then you can copy from matching chart-size to matching chart-size.
    Last edited by JBeaucaire; 12-26-2008 at 04:14 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    12-20-2008
    Location
    Idaho
    Posts
    6
    I tried this and I get an error #DIV/0!. The problem is if I copy and paste the first row of "machine#1" to the first row in "machine #2 it works fine. But if I want to move the 1st job on "machine" #1 to the 2nd, 3rd, 4th.............. row in "machine" #2 I get the error above.

+ 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