$$Excel-Macros$$ Re: Functions returning an integer

2013-05-01 Thread colmkav
ok thanks On Monday, April 29, 2013 11:00:13 AM UTC+2, colmkav wrote: > Hi, I am trying to execute this function to return the column number of a > heading. However although the value is correctly 3 when it reaches the end > of the function it becomes 0 when I set it to iFund2Col after leaving

$$Excel-Macros$$ Re: Functions returning an integer

2013-04-29 Thread Dave S
> If (iFund2Col = GetHeadingColumnNumber(ws, "Fund")) < 0 Then > > ... it becomes 0 when I set it to iFund2Col after leaving the function ... Nope. This is not C. That doesn't set iFund2Col, it tests for equality with it. You need to do the assignment in a separate statement. On Monday, Apri

$$Excel-Macros$$ Re: Functions returning an integer

2013-04-29 Thread colmkav
File attached -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent,

$$Excel-Macros$$ Re: Functions returning an integer

2013-04-29 Thread Lalit Mohan Pandey
Share your file. On Monday, 29 April 2013 14:30:13 UTC+5:30, colmkav wrote: > > Hi, I am trying to execute this function to return the column number of a > heading. However although the value is correctly 3 when it reaches the end > of the function it becomes 0 when I set it to iFund2Col after l