+ Reply to Thread
Results 1 to 3 of 3

Union/Range/Cells

  1. #1
    KentÄ
    Guest

    Union/Range/Cells

    Hi guys

    Do you have any idea why this code don't runs?

    Set mittRange = Application.Union(Range(Cells(orgRad, KolE), Cells(dblRad,
    KolI)))
    --
    Hälsningar/Regards
    KentÄ

  2. #2
    keepITcool
    Guest

    Re: Union/Range/Cells

    yes..
    look at your brackets..

    you attempt to create a union with 1 range only.







    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    KentÄ wrote :

    > Hi guys
    >
    > Do you have any idea why this code don't runs?
    >
    > Set mittRange = Application.Union(Range(Cells(orgRad, KolE),
    > Cells(dblRad, KolI)))


  3. #3
    Bob Phillips
    Guest

    Re: Union/Range/Cells

    The Union method requires at least 2 arguments, you are only passing one.

    Range(Cells(orgRad, KolE), Cells(dblRad,KolI)) is a range of contiguious
    cells starting at Cells(orgRad, KolE), and ending atCells(dblRad,KolI), it
    is not two ranges.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "KentÄ" <[email protected].(donotSpam)> wrote in message
    news:[email protected]...
    > Hi guys
    >
    > Do you have any idea why this code don't runs?
    >
    > Set mittRange = Application.Union(Range(Cells(orgRad, KolE), Cells(dblRad,
    > KolI)))
    > --
    > Hälsningar/Regards
    > KentÄ




+ 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