+ Reply to Thread
Results 1 to 3 of 3

Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

Hybrid View

Guest Cells(col,row) keep moving to... 04-25-2005, 06:06 PM
Guest Re: Cells(col,row) keep... 04-25-2005, 07:06 PM
Guest Re: Cells(col,row) keep... 04-25-2005, 07:06 PM
  1. #1
    WayneL
    Guest

    Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

    Hi


    I a writing VBA in Excel and I can not get the following line to run:

    Sheets("Sheet1").cells(Row, Col).Value = Num


    The "cells" part turns from "Cells" to "cells" when I hit return and I guess
    it treats it like an array not a cell location.

    Can anyone help clear this up.

    Cheers

    Wayne



  2. #2
    Vasant Nanavati
    Guest

    Re: Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

    Do you have "cells" defined somewhere else? This generally happens when you
    (mis)use a reserved word elsewhere in the project.

    --

    Vasant

    "WayneL" <home@wlawson-nomorespam.co.uk> wrote in message
    news:nHdbe.5593$TT6.1411@newsfe3-win.ntli.net...
    > Hi
    >
    >
    > I a writing VBA in Excel and I can not get the following line to run:
    >
    > Sheets("Sheet1").cells(Row, Col).Value = Num
    >
    >
    > The "cells" part turns from "Cells" to "cells" when I hit return and I

    guess
    > it treats it like an array not a cell location.
    >
    > Can anyone help clear this up.
    >
    > Cheers
    >
    > Wayne
    >
    >




  3. #3
    Don Guillett
    Guest

    Re: Cells(col,row) keep moving to lower case and I can not ref. a cells in a differnet sheet

    I just tested this on xl2002

    Sub ddd()
    num = 12345 '"dd"
    Row = 1
    col = 5
    Sheets("Sheet1").Cells(Row, col).Value = num
    End Sub

    --
    Don Guillett
    SalesAid Software
    donaldb@281.com
    "WayneL" <home@wlawson-nomorespam.co.uk> wrote in message
    news:nHdbe.5593$TT6.1411@newsfe3-win.ntli.net...
    > Hi
    >
    >
    > I a writing VBA in Excel and I can not get the following line to run:
    >
    > Sheets("Sheet1").cells(Row, Col).Value = Num
    >
    >
    > The "cells" part turns from "Cells" to "cells" when I hit return and I

    guess
    > it treats it like an array not a cell location.
    >
    > Can anyone help clear this up.
    >
    > Cheers
    >
    > Wayne
    >
    >




+ 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