+ Reply to Thread
Results 1 to 4 of 4

Refering to a cell in a named range

  1. #1
    Registered User
    Join Date
    05-22-2008
    Posts
    74

    Refering to a cell in a named range

    I have a a column named TractID. I need to insert text into a single cell in the column. Running the code below the row is 4 and TractID is currently column 1.

    Please Login or Register  to view this content.
    When I use this above code I get an error "Method Range of Object _Global" failed. When I put quotations around TractID I get a type mismatch error.
    Scott
    The harder it gets the happier I am.
    Finally got my signature set up!

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    does inlastrow have a value?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    This replaces the With...EndWith
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    05-22-2008
    Posts
    74
    Got it. All I needed to do was get rid of the selection and just refer to the cells with the column being Range("Trade").Column.

    Thanks for the help everyone.

+ 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