[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

xlsm href problem

Posted on 2011-05-10
6
Medium Priority
?
470 Views
Last Modified: 2012-05-11
Hi Experts,

I have a xlsm file that i open with a href from a html file. The xlsm file have some code in the open workbook so is opens a xlm file. It works fine when i double click the xlsm file, but when it is open through a href link the xlsm file opens but it does not open the xml file?

Can someone help with this?
Dim strname As String
Dim strpath As String
Dim oExcel As Excel.Application
Dim oWX As Workbook
Set oExcel = New Excel.Application
Application.Visible = False
Application.WindowState = xlMinimized
Application.ScreenUpdating = False
strname = Replace(ThisWorkbook.Name, ".xlsm", ".xml")
strpath = ThisWorkbook.Path & "/"
Set oWX = Workbooks.OpenXML(strpath & strname)
Application.Visible = True
Application.WindowState = xlMaximized
Application.ScreenUpdating = True
Application.ThisWorkbook.Close

Open in new window

0
Comment
Question by:DCRAPACCESS
  • 4
  • 2
6 Comments
 
LVL 5

Expert Comment

by:wellous
ID: 35764500
Hi,

Would you please explain more, what you are after?
opening xlsm which has xml in the same folder from href ? is that what you want?

Brgds
Wellous
0
 

Author Comment

by:DCRAPACCESS
ID: 35768879
Yes that is what i want. But i found out something strange. If i press the link(href) in a firefox browser, then there is no problem. But nothing happens when i do the same with IE 6 (that is the version my work place are using :-( )

So it seems that it is some security issue in IE6
0
 
LVL 5

Expert Comment

by:wellous
ID: 35773553
It seems that you need to upgrade the ie version, but anyway before doing that please read this article http://radio.javaranch.com/pascarello/2005/10/26/1130348276996.html

hope it helps,
Wellous
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 5

Accepted Solution

by:
wellous earned 2000 total points
ID: 35773618
Also please do this in yr IE6 ...
Go to Tools > Internet Options > Advanced > Security > and check "Allow active content to run in files on My Computer".

Pls let me know.
Wellous

0
 

Author Comment

by:DCRAPACCESS
ID: 35806687
Hi, the Security setting was the answer :-)
0
 
LVL 5

Expert Comment

by:wellous
ID: 35807832
Glad to be for help ;)
Thanks for the points & the grade
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question