+ Reply to Thread
Results 1 to 4 of 4

Set Multiple (non-continous) ranges for easy Copy then paste values

  1. #1
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Set Multiple (non-continous) ranges for easy Copy then paste values

    Hi guys,

    I've been using this code (called by a form to select department and month) where section of it is:
    Please Login or Register  to view this content.
    Note that Xlfsheet and Offset(0, colnum) are stated on a little table on separate worksheet. And to determine which worksheet [Xlfsheet] (currently there are 20 of them) and which column [Offset] to update, I call a form to select those - No prob there.

    However, after this code, then the following procedure is called to copy and paste value to the same range as the formulas:
    Please Login or Register  to view this content.
    The problem is that every I make a change to add a new row on my workbook, I need to go back and change the code for the entering of the formulas and the code for pasting of values. Is there a way to shortened this?

    Note that I cannot use named ranges as there are multiple worksheets that are updated one after the other and 12 (one for each month) different columns for each worksheet.

    Thanks,

    Ron
    Last edited by ron2k_1; 02-28-2011 at 07:55 PM.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Set Multiple (non-continous) ranges for easy Copy then paste values

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Set Multiple (non-continous) ranges for easy Copy then paste values

    Well, as much as I try because the file is so big, with so many worksheets and so, many rows and columns, I couldn't get it under 1MB:

    But I was toying with the following:
    Please Login or Register  to view this content.
    But I'm getting and "Expected: List Separator or )" error

    Can anybody follow the above?

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Set Multiple (non-continous) ranges for easy Copy then paste values

    We don't need your whole file, just require how the workbook is laid out and what you are trying to do. This will get you a faster answer, nobody wants to create a workbook that matches your code.
    Last edited by davesexcel; 02-28-2011 at 08:53 PM.

+ 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