Results 1 to 4 of 4

cell("Address") problem

Threaded View

foxguy cell("Address")... 04-04-2009, 03:03 PM
Leith Ross Re: cell("Address")... 04-04-2009, 03:06 PM
foxguy Re: cell("Address")... 04-05-2009, 11:48 AM
broro183 Re: cell("Address")... 04-06-2009, 11:32 AM
  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    cell("Address") problem

    name Address_R refers to $A$30

    name Blank_R refers to $C$8



    cell Address_R formula : =cell("Address",Blank_R)

    cell Address_R display : $C$8



    When I click a button with an assigned macro, before the macro even executes the first line,

    cell Address_R display changes to "R8C3".



    I've simplified the code
    dim sRange as string, rCell as range
    
    sRange = "R"
    
    'next line crashes
    
    set rCell = range(range("Address_" & sRange).value)
    If I stop the code, go to Address_R, put my cursor in the formula bar and hit "Enter" (i.e. i don't change the contents of the cell) then the display changes back to "$C$8" and then macro continues fine.
    Last edited by foxguy; 04-04-2009 at 03:06 PM.

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