Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Getting a value from a formatted row

Hi
I wonder if some of you can help me with this. This is part of a function
(called TotalEnergy) that tries to get a value from a cell formatted with a
line at the bottom (excel 2000).
LocationDate and SheetSize are variables that has been (well) determined
previously in the function. The For - Next statement goes down between these
two row positions and has to find the first cell with a line at the bottom,
and get the value in other column in that same row.

For i = LocationDate To SheetSize
If Sheets("Diary").Cells(i, 2).Borders(xlEdgeBottom).LineStyle =
xlContinuous Then _
TotalEnergy = Sheets("Diary").Cells(i, 8): Exit For
Next i

The function works fine in the immediate window, it gets the cell value
properly. But when I try to use the function in the sheet, excel says that
there is a circular reference in some open workbook (and I donīt have any
other one open).

What could it be?

Thanks for any help or advice.
MMansilla

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Getting a value from a formatted row

Thanks Martin,
I use the function in a different sheet from where the data is, so I'm not
evaluating the cell where the function is, though I suspect it is something
related to your suggestion.

MMansilla

Hi Marcelo,

Off the top of my head I think it may be becasue the you put function in
say
cell B1 and it is checking B1 or in H1?.

Try put it on in a cell you are not checking.
--


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
formatted cells medina Excel Worksheet Functions 0 April 16th 10 04:29 PM
pre-formatted sheet: CjTex61 New Users to Excel 1 July 14th 09 05:55 PM
now get message "disk is not formatted or formatted for Mac" 5carps Excel Discussion (Misc queries) 0 June 14th 06 12:16 AM
formatted link mino Excel Programming 2 November 22nd 05 05:05 PM
Converting 'General' formatted cells to Text formatted cell using. Zahid Khan Excel Worksheet Functions 1 March 12th 05 07:13 PM


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Đ2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"