LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I suppress warnings when following Hyperlinks


The only other way I could think of achieving this is to shell t
command (wscript) and have it run an outside vbscript for you whic
presses the buttons for you using a timer and sendkeys (obviously cod
halts inside excel while a dialog box is showing). So it would look
bit like this:


sub speculative()

set wsObj = createobject("wscript.shell")
wsObj.run("c:\winnt\system32\cmd.exe /c wscript c:\press_buttons.vbs")
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True

end sub

Then in the vbscript:

sub pressButtons()

set bpObj = createobject("wscript.shell")
bpObj.appactivate("My_Workbook_Name")
bpObj.sendkeys "My_button_presses_here"

end sub

Pure speculation, none of this tested!

Cheers
Jo

--
LFCFa
-----------------------------------------------------------------------
LFCFan's Profile: http://www.excelforum.com/member.php...fo&userid=3748
View this thread: http://www.excelforum.com/showthread.php?threadid=57211

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warnings Lynz[_2_] Excel Discussion (Misc queries) 3 August 14th 07 03:58 PM
Suppress messages/warnings using Workbooks.Open Guy Fawkes Excel Programming 1 May 15th 06 08:57 AM
how to protect without getting the warnings Conditional Formatting Excel Worksheet Functions 0 November 21st 05 04:40 PM
Suppress warnings when saving text file? Snowsride - ExcelForums.com Excel Programming 2 October 12th 04 01:06 PM
suppress warnings Claude Excel Programming 2 April 21st 04 12:57 PM


All times are GMT +1. The time now is 04:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"