Previous in Forum: Wi-Fi Woes   Next in Forum: Barcode vs Excel
Close
Close
Close
7 comments
Rate Comments: Nested
Participant

Join Date: Dec 2008
Posts: 3

Unblocking Excel

12/01/2008 6:36 PM

Hi all.

I have an excel file with some cells containing Hypertextual URL links.

These links are opened by a macro but sometimes the internet site is slow because it is down or in overload and excel crashes.

I try pressing esc button but it doesn't work, the screen become white and everything stops.

I was arguing if there is a way to unblock excel in these cases or maybe a code that I can insert in the macro so that it stops the loop after 10 seconds.

Thank you


__________________
http://www.giftideashop.net/ - http://www.idee-regalo.biz/

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
2
Commentator

Join Date: Oct 2006
Location: East Coast, US
Posts: 94
Good Answers: 3
#1

Re: Unblocking Excel

12/03/2008 12:07 AM

Options:

1. Take out the macro(s) - Replace with actual Visual Basic code and set parameters on how to deal with a non-responsive server.

2. If you can check to see how healthy the site is before opening the workbook - Make logical decision whether to open it or not.

3. Change the macro security to medium and it will ask if you want to enable the macro or not - Disabling macros will allow viewing & editing purposes, but will not allow any macro to run until the file is reopened with macros enabled.

4. Go to Mr. Excel.com and ask their experts who are well versed in dealing with excel. They will also be a great help in setting up VBA code to retrieve info from links.

Register to Reply Good Answer (Score 2)
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#2
In reply to #1

Re: Unblocking Excel

12/03/2008 2:36 AM

Great tip thanks!

http://www.mrexcel.com/

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Participant

Join Date: Dec 2008
Posts: 3
#3
In reply to #2

Re: Unblocking Excel

12/03/2008 1:24 PM

ok, meanwhile thanks.

bye

Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#4

Re: Unblocking Excel

12/04/2008 9:01 AM

Escape may not work, but try Ctrl-Break. That is the traditional way to stop code that is looping. If that doesn't work, Ctrl-Alt-Del will open your Task Manager, and you can end the process. Hopefully you saved your work before starting the test.

Chris

Register to Reply
Participant

Join Date: Dec 2008
Posts: 3
#5
In reply to #4

Re: Unblocking Excel

12/06/2008 9:00 AM

For example, try to select this site from a cell:
http://www.hotvsnot.com

and to launch this macro:
Sub OpenLinks()
Dim rCell As Range
On Error Resume Next
Application.DisplayAlerts = False
With Selection
For Each rCell In Selection.Cells
ActiveWorkbook.FollowHyperlink _
Address:=rCell.Value, _
NewWindow:=True
Next rCell
End With
End Sub

my excel freeze!
how to unlock?

esc not work, ctrl+break not work..
ctrl+alt+canc works but but loses data

thanks

Register to Reply
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson Hobbies - RC Aircraft - New Member

Join Date: Sep 2006
Location: Clive, Alberta, Canada
Posts: 5916
Good Answers: 204
#6
In reply to #5

Re: Unblocking Excel

12/06/2008 10:36 AM

I'm not sure why you are creating a group selection.. but for one website.. try the following.

PS. I just recorded a macro.. works perfectly on my machine.

Sub OpenLink()

Range("C13").Select
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Application.WindowState = xlNormal

End Sub

Sub Create_Link()

Range("C13").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, _
Address:="http://www.hotvsnot.com/", _
TextToDisplay:="http://www.hotvsnot.com/"
Selection.Hyperlinks(1).Address = "http://www.hotvsnot.com/"

End Sub

Register to Reply
Anonymous Poster
#7
In reply to #6

Re: Unblocking Excel

12/24/2008 11:43 AM

I resolved to adding DoEvents on the macro code
Thanks to all
Bye

Register to Reply
Register to Reply 7 comments

Good Answers:

These comments received enough positive votes to make them "good answers".
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); ArcticZone (1); Callum (2); chrisg288 (2); Randall (1)

Previous in Forum: Wi-Fi Woes   Next in Forum: Barcode vs Excel

Advertisement