I don´t know if we understood each other. I need to transfer coeficients of 
trendline equation shown in graph into cell. 


Dňa sobota, 24. februára 2018 21:00:58 UTC+1 3xs...@gmail.com napísal(-a):
>
> Marek,
>
> The trendline equation is in a DataLabel object and you can get access to 
> that text and insert it in a cell.
> So a quick and dirty way to do this is:
>
> Private Sub Test()
>
>
>     ActiveSheet.ChartObjects("Chart 1").Activate
>     
>     Cells(1, 1) = ActiveChart.FullSeriesCollection(1).Trendlines(1).
> DataLabel.Text
>
>
> End Sub
>
> Note that this assumes you have only one chart in the worksheet.  If you 
> have more, you'll have to figure out which one it is.
>
> -Jim
>
> On Friday, February 23, 2018 at 2:14:22 AM UTC-5, Marek Adamech wrote:
>>
>> Hi there.
>>
>> I was looking for a way how to transfer trendline equation from the graph 
>> into a cell. I know that there ist a way to do it using functions (e.g. 
>> LINEST,..), 
>> but for some reasons I need to obtain equation right from the graph, not 
>> calculate it from values in chart.
>> I know nothing about macros and VBA, so I dont know if there is a way to 
>> do it. But if, I would be more than happy if anybody could write such a 
>> thing.
>>
>> To be more specific, I attached xls file (green cells where coeficient of 
>> equation should be) 
>>
>> Please, anybody, could you help me with this?
>>
>> Thank you 
>>
>

-- 
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, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to