Closed Thread
Results 1 to 3 of 3

How to do cells(x,y) for merged field

  1. #1
    Piotr
    Guest

    How to do cells(x,y) for merged field

    I have huge problem I cant get data from merged cell it is 4-5,9 in
    excell when i try to point
    CELLS(4,9) it returns null
    cells(5,9) return null as well

    how can i get this data I cant change the .xls file

  2. #2
    Jerry W. Lewis
    Guest

    Re: How to do cells(x,y) for merged field

    I cannot reproduce your problem. You do understand that the order of
    arguments in Cells() is row, column?

    I merged cells I4:I5 and filled the meged cell with "Eureka!" and ran
    the following macro

    Sub tryit()
    For i = 4 To 5
    Cells(i, 1) = Range("I" & i).Value
    Cells(i, 2) = Cells(i, 9).Value
    Next i
    End Sub

    which put "Eureka!" into A4:B4 and 0 into A5:B5

    Jerry

    Piotr wrote:

    > I have huge problem I cant get data from merged cell it is 4-5,9 in
    > excell when i try to point
    > CELLS(4,9) it returns null
    > cells(5,9) return null as well
    >
    > how can i get this data I cant change the .xls file



  3. #3
    Duke Carey
    Guest

    RE: How to do cells(x,y) for merged field

    Try to avoid merged cells at all costs, as they will cause you heartache in
    exchange for little or (usually) no benefit.

    "Piotr" wrote:

    > I have huge problem I cant get data from merged cell it is 4-5,9 in
    > excell when i try to point
    > CELLS(4,9) it returns null
    > cells(5,9) return null as well
    >
    > how can i get this data I cant change the .xls file
    >


Closed 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