+ Reply to Thread
Results 1 to 4 of 4

Macro to copy named range "box" values to named range "box2". Both are size of 5x26

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Macro to copy named range "box" values to named range "box2". Both are size of 5x26

    Hi all
    I bet its quite easy for a experienced user. I myself couldn't figure it out. Still learning

    I have a a named range "box" that covers area of 5x26 cells.
    Now I have named range "box2" that also covers area of 5x26 cells.

    Could I have macro that copies over the values of "box" to "box2"?

    Any help is appreciated
    Cheers
    Rain
    Last edited by rain4u; 06-04-2011 at 10:59 AM.

  2. #2
    Forum Guru mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,204

    Re: Macro to copy named range "box" values to named range "box2". Both are size of 5x

    This should work
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: Macro to copy named range "box" values to named range "box2". Both are size of 5x

    Thank you. Tried it. For some reason both boxes were cleared from values. Any other suggestions?

  4. #4
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: Macro to copy named range "box" values to named range "box2". Both are size of 5x

    Thank you. Tried it. For some reason both boxes were cleared from values. Any other suggestions?


    EDIT:
    My bad. My defined names were the other way around and one of the boxed had no values. So this explained it. I actually tried this myself but thought I was doing it wrong as had the same problem. Once you recommended the same code I tried it once more and realized my mistake. Thank you!

    Cheers
    Rain



    EDIT 2: Aaarrrgh. Thought I clicked edit button. I guess not. Is there anyway to delete last post? Just a question for future reference.
    Last edited by rain4u; 06-04-2011 at 10:59 AM.

+ 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