Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
y y is offline
external usenet poster
 
Posts: 60
Default identifying which cell calls my VBA function.

My formula is spread over 1000 cells. Only in some of these it is wrong.
I would analize the code when the code runs for those cells.
So I would set a breakpoint that consider the calling cell.
I don't want to move my formula, and others one it needs, to a new workbook and reproduce the
conditions for tose cells.

Thanks you, Alex.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default identifying which cell calls my VBA function.

Something like

If Application.Caller.Address = "$A$1" Then
' do your stuff

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"y" wrote in message ...
My formula is spread over 1000 cells. Only in some of these it is wrong.
I would analize the code when the code runs for those cells.
So I would set a breakpoint that consider the calling cell.
I don't want to move my formula, and others one it needs, to a new

workbook and reproduce the
conditions for tose cells.

Thanks you, Alex.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default identifying which cell calls my VBA function.

Application.Caller.Address

will give you the location of the cell that calls your UDF.

--

Vasant



"y" wrote in message ...
My formula is spread over 1000 cells. Only in some of these it is wrong.
I would analize the code when the code runs for those cells.
So I would set a breakpoint that consider the calling cell.
I don't want to move my formula, and others one it needs, to a new

workbook and reproduce the
conditions for tose cells.

Thanks you, Alex.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default identifying which cell calls my VBA function.

Hi Alex,

Did Bob and Vasant's suggestion that use the Application.Caller.Address
works for you?
If you still have any concern on this issue, please feel free to post here.


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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
using strings in vlookup function calls AtTheEndofMyRope Excel Worksheet Functions 5 August 30th 09 07:06 PM
Identifying Current Cell kaayyes Excel Worksheet Functions 8 June 8th 07 03:30 PM
Format cell to show duration of phone calls Dana Excel Worksheet Functions 1 February 10th 06 03:09 PM
function calls Claude Excel Programming 2 December 5th 03 01:55 PM
Any automation calls gets hung when the Excel workbook has an active cell. S.Tremblay Excel Programming 1 November 6th 03 05:43 PM


All times are GMT +1. The time now is 04:06 AM.

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

About Us

"It's about Microsoft Excel"