Jumat, 01 September 2017

[smf_addin] Digest Number 4136

9 Messages

Digest #4136

Messages

Thu Aug 31, 2017 7:51 pm (PDT) . Posted by:

joelfp2000

Thanks Ron! Works great.

Joel

Thu Aug 31, 2017 9:34 pm (PDT) . Posted by:

"Randy Harmelink" rharmelink

They may be another website that has moved to JSON data, and they build the
web page dynamically after retrieving the data from elsewhere. If so, you
need to see if the add-in can extract data from the "elsewhere"...

That last "1" parameter means that you're perusing the IE object, which
means the web page has completed all of its scripting. But I've not found
it to be reliable between different versions of IE and EXCEL and O/S.

On Thu, Aug 31, 2017 at 3:17 PM, buckleca@
​...
wrote:

>
> In the Quick-webpage-examination spreadsheet:
>
> smfGetTagContent($C$7,$C$8,B12,$C$9) - always returns error
>
> smfGetTagContent($C$7,$C$8,B12,$C$9,,,,,,1) - sometimes returns the
> correct results - but mostly returns error.
>
> Maybe I'll try debugging the code and see what might be happening.
>
>

Thu Aug 31, 2017 11:37 pm (PDT) . Posted by:

buckleca

I discovered something.

When I first open the spreadsheet and the functions all return error, while the same spreadsheet is open I select Data - From Web - paste the link into the Excel i/e browser - Go, it loads correctly except for a script error.

I then click on Yes to continue running the scripts.... Close without running Import - Force Calculation - and the functions work correctly.

Without doing this step, it's all errors!

Maybe the functions can't process the script error on the first run? Strange.

Thanks for your help.

Fri Sep 1, 2017 1:50 am (PDT) . Posted by:

"Randy Harmelink" rharmelink

There is sometimes an issue with Morningstar, where I need to visit the
site before I can get data. It's generally when they have a redirection to
some type of advertising or special notice. It then sets a cookie that
indicates it no longer needs to do that. Since the add-in just grabs source
code, it can't run the script that updates the cookie.

It could be your site has something like that...?

On Thu, Aug 31, 2017 at 11:37 PM, buckleca@
​...
wrote:

>
> I discovered something.
>
> When I first open the spreadsheet and the functions all return error,
> while the same spreadsheet is open I select Data - From Web - paste the
> link into the Excel i/e browser - Go, it loads correctly except for a
> script error.
>
> I then click on Yes to continue running the scripts.... Close without
> running Import - Force Calculation - and the functions work correctly.
>
> Without doing this step, it's all errors!
>
> Maybe the functions can't process the script error on the first run?
> Strange.
>
> Thanks for your help.
>

Fri Sep 1, 2017 9:07 am (PDT) . Posted by:

buckleca

Thanks Randy

This might be a temporary problem with the website and it looks like the script error is happening on an ad link.

At least in the meantime I can run the internal i/e once and the SMF functions work like a charm.

I'll carry on as if I'm in my right mind

Thu Aug 31, 2017 10:26 pm (PDT) . Posted by:

zbgb952

High Randy,

I just updated one of my Excel spreadsheets that use your functions and for some reason, the 5 year
dividend growth function I used: RCHGetElementNumber($D36,13674)/100, where $D36 is the stock ticker symbol, gave me a value of 0.00% for every stock ticker in my spreadsheet.

Has something changed with this?

Thankyou

Morey


Thu Aug 31, 2017 11:24 pm (PDT) . Posted by:

"Randy Harmelink" rharmelink

It's because Reuters has not been populating company data on the web page:

http://www.reuters.com/finance/stocks/financial-highlights/MMM

Another add-in user had a similar issue and contacted Reuters, getting this
response:

https://groups.yahoo.com/neo/groups/smf_addin/conversations/messages/33045

On Thu, Aug 31, 2017 at 10:26 PM, mb0329@
​...
wrote:

>
> I just updated one of my Excel spreadsheets that use your functions and
> for some reason, the 5 year
> dividend growth function I used: RCHGetElementNumber($D36,13674)/100,
> where $D36 is the stock ticker symbol, gave me a value of 0.00% for every
> stock ticker in my spreadsheet.
>
> Has something changed with this?
>
>

Fri Sep 1, 2017 8:55 am (PDT) . Posted by:

joelfp2000

Randy,


I hope you've had a great week. Thanks for your help with my questions this week.


I'm on the M* Quicktake report and would like retrieve the "% Rank in Category" under the Tax Analysis section, not the Performance History section.


http://quicktake.morningstar.com/fundnet/printreport.aspx?symbol=sambx http://quicktake.morningstar.com/fundnet/printreport.aspx?symbol=sambx



The formula that I am using is as follows:


=RCHGetTableCell("http://quicktake.morningstar.com/fundnet/printreport.aspx?symbol="&$A2,1,"% Rank in Category")/100



I usually change the ,1, to a ,2, etc. if I want the next column's data, etc. However, I can't figure out how to move to the next section.


Any help would be wonderful as I'm totally stumped.


Thanks in advance and I hope you enjoy your Labor Day weekend!


Joel






Fri Sep 1, 2017 10:36 am (PDT) . Posted by:

"Randy Harmelink" rharmelink

You can use up to four search terms, so you need to position yourself first
before looking for "% in Category". For example:

=RCHGetTableCell("
http://quicktake.morningstar.com/fundnet/printreport.aspx?symbol="&$A2,1,">Tax
Analysis","% Rank in Category")

On Fri, Sep 1, 2017 at 8:55 AM, joel.andrews@
​...
wrote:

> I'm on the M* Quicktake report and would like retrieve the "% Rank in
> Category" under the Tax Analysis section, not the Performance History
> section.
>
> http://quicktake.morningstar.com/fundnet/printreport.aspx?symbol=sambx
>
> The formula that I am using is as follows:
>
> =RCHGetTableCell("http://quicktake.morningstar.com/
> fundnet/printreport.aspx?symbol="&$A2,1,"% Rank in Category")/100
>
> I usually change the ,1, to a ,2, etc. if I want the next column's data,
> etc. However, I can't figure out how to move to the next section.
>
> Any help would be wonderful as I'm totally stumped.
>
>
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF
READ MORE....

[belajar-excel] Digest Number 4287

1 Message

Digest #4287

Message

Fri Sep 1, 2017 6:32 am (PDT) . Posted by:

"nangagus"

Dear member B-Excel

Asalamualaikum warahmatullah.

saya membuat sebuah file baru macro enabel menggunakan macro.

saya menggunakan cekrip:

Sub damel()
Dim nm As String
nm = ActiveWorkbook.Path & "\satu.xlsm"
Workbooks.Add
   ActiveWorkbook.SaveAs Filename:=nm,
FileFormat:=xlOpenXMLWorkbookMacroEnabled
End Sub

Bagaimana caranya agar file saya yang baru itu juga ada macronya,
misalnya menulis macro di file satu.xlsm:

Sub workbook_Open ()

Sheet1.Activate

End sub.

wasalamualaikum warahmatullah

NangAgus

============================================================
Pojok Lowongan Kerja yang disediakan milis :
http://milis-belajar-excel.1048464.n5.nabble.com/Pojok-Lowongan-Kerja-f5725753.html
*** Posting lowongan kerja : ke link tersebut dan klik New Topic
============================================================
bergabung ke milis (subscribe), kirim mail kosong ke: belajar-excel-subscribe@yahoogroups.com
posting ke milis, kirimkan ke: belajar-excel@yahoogroups.com
berkunjung ke web milis : http://tech.groups.yahoo.com/group/belajar-excel/messages
melihat file archive / mendownload lampiran : http://www.mail-archive.com/belajar-excel@yahoogroups.com/
atau (sejak 25-Apr-2011) bisa juga di : http://milis-belajar-excel.1048464.n5.nabble.com/
menghubungi moderators & owners: belajar-excel-owner@yahoogroups.com
keluar dari membership milis (UnSubscribe), kirim mail kosong ke : belajar-excel-unsubscribe@yahoogroups.com
---------------------------------------------------------------------
READ MORE....

]] XL-mania [[ Digest Number 2883

1 Message

Digest #2883

Message

Thu Aug 31, 2017 10:57 pm (PDT) . Posted by:



File : all_about_XL-mania.zip
Description : Kirimkan ke teman-teman Anda dan ajak mereka bergabung dengan lebih dari 16,000 member XL-mania!

:: XL-mania ::::::::::::::::::::
Momods sekarang jualan tas di www.flirtypoodle.com ha ha ha....
:: ------------- ::::::::::::::::::::
DILARANG : MLM, money game, OOT, iklan tanpa izin, SARA, testing, pembicaraan pribadi, one line message,  melecehkan,  tidak sopan.
:: ------------- ::::::::::::::::::::
Buat subjek yang kreatif, jangan : "tanya", "help", "mohon bantu"
Usahakan besar attachment < 200 kb. Gunakan  winzip  jika  perlu.
:: ------------- ::::::::::::::::::::
Ajak teman-teman Anda bergabung dengan mengirim e-mail kosong ke
XL-mania-subscribe@yahoogroups.com atau kirimkan mereka file dari
http://groups.yahoo.com/group/XL-mania/files/Promotion/         
:: ------------- ::::::::::::::::::::
Berikan testimoni di : 
http://www.xl-mania.com/2008/06/testimoni-xl-mania.html        
:: ------------- ::::::::::::::::::::
Message lama ada di :
http://groups.yahoo.com/group/XL-mania/messages [perlu yahoo id]
http://www.mail-archive.com/xl-mania@yahoogroups.com
READ MORE....

Sv: [ExcelVBA] BeforeSave - event - working on all files

 

Hi Lisa!

Thanks for your answer.

I will try to do some research and see what I come up with.

If I succeed I'll tell you all!

Perhaps someone else has any suggestions.

regards Torstein

Den Torsdag, 31. august 2017 21.14 skrev "Green 1z@compuserve.com [ExcelVBA]" <ExcelVBA@yahoogroups.com>:


 
Hi Torstein!

I'm not sure if this will help but this is what I use to shut down Excel.
Maybe it can be "adjusted" to suit what you want.

I've also tried many times to implement/build a "general" error routine but that has escaped me because as you say... one problem is where to put it!

I can only think that you may have to put code into the before save event that calls code in another open workbook or an add in.

An Add In may be a good choice actually because it gets loaded when you open excel and can be made available to all projects.

HTH
Lisa


Sub subShutDownExcel()
' Save all workbooks and quit.

Dim wblWorkBook As Workbook
Dim slWorkBooks() As String
Dim lngErrNumber As Long
Dim blnlDone As Boolean
Dim lnglWorkBooksOpen As Long
Dim lnglClosed As Long

lnglWorkBooksOpen = Workbooks.Count
lnglClosed = 0

blnlDone = False
With Application
  Do
    For Each wblWorkBook In Workbooks
      On Error Resume Next
      Application.DisplayAlerts = False
      wblWorkBook.Save
      Application.DisplayAlerts = True
      wblWorkBook.Close
      lngErrNumber = Err.Number
      On Error GoTo 0
      Select Case lngErrNumber
      Case 0
        lnglClosed = lnglClosed + 1
      End Select
    Next wblWorkBook
    If lnglClosed = lnglWorkBooksOpen Then
      Exit Do
    ElseIf lnglClosed > 10 Then
      ' Sanity check.
      Exit Do
    End If
  Loop
  .Quit
End With

' ***********************************************************************
End Sub



-----Original Message-----
From: Torstein Johnsen sejohnse@yahoo.no [ExcelVBA] <ExcelVBA@yahoogroups.com>
To: Yahoogroups <excelvba@yahoogroups.com>
Sent: Thu, Aug 31, 2017 9:19 am
Subject: [ExcelVBA] BeforeSave - event - working on all files



I know the beforeSave-event that can be added to a workbook and executes before the user saves that workbook.

I want to make a general beforeSave-event that executes before the user saves any workbook.

I suppose I may have missed something about Application events but I can't figure out where to put such an event.

My goal is to make a log of each file saved.

r egards Torstein




__._,_.___

Posted by: Torstein Johnsen <sejohnse@yahoo.no>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------

.

__,_._,___
READ MORE....