Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Oct 2003
    Location
    Toronto, Ontario, Canada
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    macro help (Office 2000)

    I am trying to create a macro that will read the input from a cell. The cell has been range named "DAY". I need a macro to copy a separate range called "RESULTS" to one of the ranges called "Mon", "Tues" ..."Sun" dependent upon the value in the cell "DAY".

  2. #2
    2 Star Lounger
    Join Date
    Sep 2003
    Location
    Louisville, Kentucky, USA
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: macro help (Office 2000)

    I assume the range called "day" will have the name of the destination range in it (e.g. "mon" or "tue" etc.). You can use a line like:

    range(range("day"))=range("results")

  3. #3
    3 Star Lounger
    Join Date
    Feb 2003
    Posts
    363
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: macro help (Office 2000)

    Do you need to do a CASE .. SELECT

    CASE Range("DAY")
    CASE Mon
    Range("Mon")=Range("Results")
    Case Tue
    Range("Tue")=Range("Results")

    ........
    End Case

    Paul

  4. #4
    New Lounger
    Join Date
    Oct 2003
    Location
    Toronto, Ontario, Canada
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: macro help (Office 2000)

    Thanks for the help. The Range function solved my problem. I can now use this same methodology to eliminate 5 other macros and combine them into one single one.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •