Senin, 31 Desember 2018

[smf_addin] Digest Number 4451[3 Attachments]

4 Messages

Digest #4451

Messages

Sun Dec 30, 2018 9:16 am (PST) . Posted by:

ridgebacksexcel

I get a run time error 1004 code. "Unable to get the Insert property of the Pictures class" error message.
The bold line is the highlighted Yellow line when I run debug.


Private Sub Worksheet_Change(ByVal Target As Range)
For Each oCell In Range("Tickers")
If Not Application.Intersect(Target, oCell) Is Nothing Then
Set oCell2 = oCell.Offset(0, 1)
On Error Resume Next
oCell2.Worksheet.Shapes("Image:" & oCell2.Address).Delete
On Error GoTo 0
If oCell.Value <> "" Then
sChart = "https://c.stockcharts.com/c-sc/sc?chart=" & oCell.Value & ",uu[305,180]dacayaci[pb20!b50][dg]"
Set p = oCell2.Worksheet.Pictures.Insert(sChart)
p.Name = "Image:" & oCell2.Address
p.Top = oCell2.Top + 10
p.Left = oCell2.Left + 4
Set p = Nothing
End If
End If
Next oCell


---In smf_addin@yahoogroups.com, <rharmelink@...> wrote :

I dug up an old "dynamic chart" workbook I created when I was first fiddling around with inserting charts. I had to change the URL for StockCharts images, but it still seems to work here once that was done.


It does nothing until something is change in the "Tickers" range (yellow shaded cells). Then, the EXCEL change event is triggered and it insert an image to the cell immediately to the right of the entered ticker symbol.


It's a very short VBA routine. If RCHCreateComment() is no longer working, maybe something like that could work for what you need?










On Thu, Dec 27, 2018 at 6:35 PM tmallen2@... wrote:

No it does not work in my new version of Excel. I am using the exact same formula as you are. It just pulls up a new comment box and Value#! error code.
I'll keep playing with it since I know it works on an older version of Excel. It must be blocking the image somehow.

I'll get back to you in a few days when I have more time to play with it.





Sun Dec 30, 2018 9:17 am (PST) . Posted by:

ridgebacksexcel

I've been playing around in the Trust Center settings to see if something was changed but no luck so far.

Sun Dec 30, 2018 10:31 am (PST) . Posted by:

ridgebacksexcel

I started my laptop and loaded a test file that I have been playing with. My laptop does not have the new Excel update yet. The RCHCreateComment function definitely works on my laptop but not on my desktop with the new Excel update.


Attached are two screenshots showing my laptop and desktop of the same Excel sheet.


Also I can toggle show Comments on and off on my laptop. When they are off the sheet looks just like my Desktop sheet but without the Yellow Comment boxes.. So somehow the desktop is either not showing the comments and I can't toggle them on or never created them in the first place. Weird.


When I hide comments on my laptop it shows nothing. No yellow boxes either.


When I add a comment on my desktop it looks different. Linked to Onedrive? Not the same type as before so that may be the problem. Excel completely changed the Display and functionality of Comments to make them dynamic.


I've attached the new comment type as well. Cell A8 with a purple triangle.

Attachment(s) from
3 of 3 Photo(s)

Sun Dec 30, 2018 10:35 am (PST) . Posted by:

"Randy Harmelink" rharmelink

Hmm. Working fine here...not sure what to tell you?

Does the URL for the image work in your browser? Or the IE object within
EXCEL (alt+d+d+w)?

Trust Center is probably irrelevant if the VBA code is already being used.
Possibly a firewall?

On Sun, Dec 30, 2018 at 10:16 AM tmallen2@... wrote:

> I get a run time error 1004 code. "Unable to get the Insert property of
> the Pictures class" error message.
>
> The bold line is the highlighted Yellow line when I run debug.
>
> Private Sub Worksheet_Change(ByVal Target As Range)
>
> For Each oCell In Range("Tickers")
> If Not Application.Intersect(Target, oCell) Is Nothing Then
> Set oCell2 = oCell.Offset(0, 1)
> On Error Resume Next
> oCell2.Worksheet.Shapes("Image:" & oCell2.Address).Delete
> On Error GoTo 0
> If oCell.Value <> "" Then
> sChart = "https://c.stockcharts.com/c-sc/sc?chart=" &
> oCell.Value & ",uu[305,180]dacayaci[pb20!b50][dg]"
> *Set p = oCell2.Worksheet.Pictures.Insert(sChart)*
> p.Name = "Image:" & oCell2.Address
> p.Top = oCell2.Top + 10
> p.Left = oCell2.Left + 4
> Set p = Nothing
> End If
> End If
> Next oCell
>
>
> ---In smf_addin@yahoogroups.com, <rharmelink@...> wrote :
>
> I dug up an old "dynamic chart" workbook I created when I was first
> fiddling around with inserting charts. I had to change the URL for
> StockCharts images, but it still seems to work here once that was done.
>
> It does nothing until something is change in the "Tickers" range (yellow
> shaded cells). Then, the EXCEL change event is triggered and it insert an
> image to the cell immediately to the right of the entered ticker symbol.
>
> It's a very short VBA routine. If RCHCreateComment() is no longer working,
> maybe something like that could work for what you need?
>
> On Thu, Dec 27, 2018 at 6:35 PM tmallen2@... wrote:
>
> No it does not work in my new version of Excel. I am using the exact same
> formula as you are. It just pulls up a new comment box and Value#! error
> code.
>
> I'll keep playing with it since I know it works on an older version of
> Excel. It must be blocking the image somehow.
>
> I'll get back to you in a few days when I have more time to play with it.
>
>
>
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF
READ MORE....

Minggu, 30 Desember 2018

[ExcelVBA] Re: Excel VBA file transfer via Bluetooth

 

Paul,

I know this is old, but I just happened by here after quite a few years and find the Groups interface new and awkward, so I hope this works.
You either gave up or solved this, but...

FWIW
I did serial I/O some years ago and my code is in the Files area. It also worked with a USB to serial adapter.  
I can only guess that the api code would work for Bluetooth by selecting the proper port number...?...
I talked to several pieces of Ham radio equipment.
I show two methods of serial I/O ant there is an explanation sheet also.
..
I decided to take a quick check here after being asked to do some new stuff for a blind ham friend. TO add dome things I'll need to re-learn all the VB stuff.
Regards


---In ExcelVBA@yahoogroups.com, <schreiner_paul@...> wrote :

That's what I'd like to do..
I was hoping someone would have a ftp code snippet I could use.
It's been a long time since I've worked with ftp.
(I think it was on a UNIX box...)
 
Paul
-----------------------------------------
"Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can." - John Wesley
-----------------------------------------


On Monday, January 22, 2018 1:57 PM, "Dr John C Bullas john.bullas@... [ExcelVBA]" <ExcelVBA@yahoogroups.com> wrote:


 
If you can ftp to a common folder then issue a dos command to copy all the files into one file I guess that can be loaded into excel? 

Good old FTP! 

On 22 January 2018 at 18:25, schreiner_paul@... [ExcelVBA] <ExcelVBA@yahoogroups.com> wrote:


Just realized, I switched computers.
The one I tested is Windows 7!
The ones I need to run on are Windows 10 and THEY don't have the option of creating shared folders through Bluetooth.

Now I'm back to trying FTP..






--


__._,_.___

Posted by: noskosteve@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (10)

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.

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

SPONSORED LINKS
.

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

Jumat, 28 Desember 2018

[smf_addin] Digest Number 4450[1 Attachment]

14 Messages

Digest #4450
1b
Re: RCHCreateComment Function is not working by "Randy Harmelink" rharmelink
1e
Re: RCHCreateComment Function is not working by "Randy Harmelink" rharmelink
1g
Re: RCHCreateComment Function is not working by "Randy Harmelink" rharmelink
1i
Re: RCHCreateComment Function is not working by "Randy Harmelink" rharmelink
1k
Re: RCHCreateComment Function is not working by "Randy Harmelink" rharmelink
1l
Re: RCHCreateComment Function is not working by "Randy Harmelink" rharmelink
2a
http://www.google.com/finance/getprices?q=....   not work more? by digsupply
2b
Re: http://www.google.com/finance/getprices?q=.... not work more? by "Randy Harmelink" rharmelink

Messages

Thu Dec 27, 2018 9:21 am (PST) . Posted by:

ridgebacksexcel

Randy,


I am getting an error from all my RCHCreateComment Function formulas.
Is StockCharts.com behind a pay wall now and no longer functioning?


Is there a work around or another site we could use to display stock charts?


I really love this function and would like to get it working again.

Thu Dec 27, 2018 11:29 am (PST) . Posted by:

"Randy Harmelink" rharmelink

Without an example of what's not working, I can't help much.

But a change at your source may be the issue.

On Thu, Dec 27, 2018 at 10:22 AM tmallen2@... wrote:

> I am getting an error from all my RCHCreateComment Function formulas.
>
> Is StockCharts.com behind a pay wall now and no longer functioning?
>
> Is there a work around or another site we could use to display stock
> charts?
>
> I really love this function and would like to get it working again.
>
>

Thu Dec 27, 2018 1:40 pm (PST) . Posted by:

ridgebacksexcel

This is the formula I have always used and was working fine until a few days ago.


=RCHCreateComment("AAPL",INT(3+RAND()),,,1)


"APPL" is referred to by another cell such as B1


So in my spreadsheet it is: =RCHCreateComment(B1,INT(3+RAND()),,,1)


I just get a Value error and a blank comment with my name in it.


Office 365 recently did an update. Maybe it messed something up.

Thu Dec 27, 2018 1:49 pm (PST) . Posted by:

ridgebacksexcel

Even a simple version such as this will not work:


=RCHCreateComment("APPL",1)

Thu Dec 27, 2018 2:24 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

Is this the chart you used to get?

https://c.stockcharts.com/c-sc/sc?chart=MMM,uu[305,a]dacayaci[pb20!b50][dc]

If so, it looks like they just changed the URL. This one that the add-in
has hard-coded no longer works:

http://stockcharts.com/c-sc/sc?chart=MMM,uu[305,a]dacayaci[pb20!b50][dc]

On Thu, Dec 27, 2018 at 2:40 PM tmallen2@bellsouth.net [smf_addin] <
smf_addin@yahoogroups.com> wrote:

> This is the formula I have always used and was working fine until a few
> days ago.
>
> =RCHCreateComment("AAPL",INT(3+RAND()),,,1)
>
> "APPL" is referred to by another cell such as B1
>
> So in my spreadsheet it is: =RCHCreateComment(B1,INT(3+RAND()),,,1)
>
> I just get a Value error and a blank comment with my name in it.
>
> Office 365 recently did an update. Maybe it messed something up.
>
>

Thu Dec 27, 2018 3:00 pm (PST) . Posted by:

ridgebacksexcel

Yes that was the chart I used to get.


Is there a workaround link or do you need to recode the URL in the function?


I can see the chart with this URL: https://c.stockcharts.com/c-sc/sc?chart=AAPL https://c.stockcharts.com/c-sc/sc?chart=AAPL


Can this work? It does not seem to work yet but getting closer here.


=RCHCreateComment("https://c.stockcharts.com/c-sc/sc?chart=AAPL",1)




Thu Dec 27, 2018 3:34 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

Coding it all yourself would be:

=RCHCreateComment("
https://c.stockcharts.com/c-sc/sc?chart=MMM,uu[305,a]dacayaci[pb20!b50][dc]
",99,229,132,1)

I have changed the add-in code for the problem, but with other things "in
the hopper", it's not a good time to re-release the code I have.

On Thu, Dec 27, 2018 at 4:00 PM tmallen2@... wrote:

> Yes that was the chart I used to get.
>
> Is there a workaround link or do you need to recode the URL in the
> function?
>
> I can see the chart with this URL:
> https://c.stockcharts.com/c-sc/sc?chart=AAPL
>
> Can this work? It does not seem to work yet but getting closer here.
>
> =RCHCreateComment("https://c.stockcharts.com/c-sc/sc?chart=AAPL",1)
>
>
>

Thu Dec 27, 2018 4:38 pm (PST) . Posted by:

ridgebacksexcel

Ok just to be clear so I understand, typing this formula exactly as below will only work after you release the new add-in with the coding change?


=RCHCreateComment("https://c.stockcharts.com/c-sc/sc?chart=MMM,uu[305,a]dacayaci[pb20!b50][dc]",99,229,132,1)


I still get a Value#! message with this exact coding.


If this code should work now, I'll keep investigating.


Excel had a big update that may have messed up something else too.
I used to be able the right click the formula cell and select edit comment. That is not there now in the newer version of Excel.


I only get a Yellow Comment with My Name: and colon at the top left of the comment box.

Thu Dec 27, 2018 4:56 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

The new formula I gave you shouldn't need any of the new code. The second
parameter of "99" says you are going to provide all the necessary
parameters. Other values give various default values for those parameters.
I just cut and pasted it and it worked fine here.

The yellow comment box with "Name:" in it has been the standard for a new
comment as long as I can remember.

Can you insert that image, using that URL, directly into your worksheet:

> Insert > Pictures

On Thu, Dec 27, 2018 at 5:47 PM tmallen2@... wrote:

> Ok just to be clear so I understand, typing this formula exactly as below
> will only work after you release the new add-in with the coding change?
>
> =RCHCreateComment("
> https://c.stockcharts.com/c-sc/sc?chart=MMM,uu[305,a]dacayaci[pb20!b50][dc]
> ",99,229,132,1)
>
> I still get a Value#! message with this exact coding.
>
> If this code should work now, I'll keep investigating.
>
> Excel had a big update that may have messed up something else too.
>
> I used to be able the right click the formula cell and select edit
> comment. That is not there now in the newer version of Excel.
>
> I only get a Yellow Comment with My Name: and colon at the top left of the
> comment box.
>
>

Thu Dec 27, 2018 5:28 pm (PST) . Posted by:

ridgebacksexcel

No it does not work in my new version of Excel. I am using the exact same formula as you are. It just pulls up a new comment box and Value#! error code.


I'll keep playing with it since I know it works on an older version of Excel. It must be blocking the image somehow.


I'll get back to you in a few days when I have more time to play with it.


Thanks.

Thu Dec 27, 2018 5:46 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

There is a possibility that EXCEL finally fixed the error that allows this
to happen.

A function is only supposed to be able to return a value to the cell it was
given access to. That doesn't include manipulating the cell attributes, for
things like format, color, font, OR COMMENT. This was an "undocumented
feature". I'm surprised Microsoft hasn't fixed it by now. It's been around
for a long time.

On Thu, Dec 27, 2018 at 6:35 PM tmallen2@... wrote:

> No it does not work in my new version of Excel. I am using the exact same
> formula as you are. It just pulls up a new comment box and Value#! error
> code.
>
> I'll keep playing with it since I know it works on an older version of
> Excel. It must be blocking the image somehow.
>
> I'll get back to you in a few days when I have more time to play with it.
>
>
>

Thu Dec 27, 2018 6:08 pm (PST) . Posted by:

"Randy Harmelink" rharmelink

I dug up an old "dynamic chart" workbook I created when I was first
fiddling around with inserting charts. I had to change the URL for
StockCharts images, but it still seems to work here once that was done.

It does nothing until something is change in the "Tickers" range (yellow
shaded cells). Then, the EXCEL change event is triggered and it insert an
image to the cell immediately to the right of the entered ticker symbol.

It's a very short VBA routine. If RCHCreateComment() is no longer working,
maybe something like that could work for what you need?

On Thu, Dec 27, 2018 at 6:35 PM tmallen2@... wrote:

> No it does not work in my new version of Excel. I am using the exact same
> formula as you are. It just pulls up a new comment box and Value#! error
> code.
>
> I'll keep playing with it since I know it works on an older version of
> Excel. It must be blocking the image somehow.
>
> I'll get back to you in a few days when I have more time to play with it.
>
Attachment(s) from Randy Harmelink
1 of 1 File(s)

Thu Dec 27, 2018 11:31 am (PST) . Posted by:

"Randy Harmelink" rharmelink

Without a specific example of what you're doing, it's hard to diagnose.

But they started to unplug Google Finance 2 or 3 years ago, so any pricing
API would probably go away as well.

Did you check the URL in your browser?

On Thu, Dec 27, 2018 at 12:02 PM picsound@... wrote:

>
> http://www.google.com/finance/getprices?q=.... not work more?
>
For the Add-in, Documentation, Templates, Tips and FAQs, visit http://ogres-crypt.com/SMF
READ MORE....