Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Checking before opening "activate:newwindow" to see if already opened

When a macro button (name = ON") is pressed, I want to open a new window, if
not already opened, with a wildcard extension of "*:2" and then close if if
this macro button is pressed (name = Off). Currently, when I press ON, it
just keeps opening a new window and gives extensions ":2", ":3", ":4", etc.
Thank you for your help


--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Checking before opening "activate:newwindow" to see if already opened

Post the offensive code. It is easier/more useful to you to edit your
existing code than to hypothesize a lot of information and write a new
macro.

I assume this new window is relative to the current workbook.

What kind of button - commandbar button?

--
Regards,
Tom Ogilvy


"sam s via OfficeKB.com" wrote in message
...
When a macro button (name = ON") is pressed, I want to open a new window,

if
not already opened, with a wildcard extension of "*:2" and then close if

if
this macro button is pressed (name = Off). Currently, when I press ON, it
just keeps opening a new window and gives extensions ":2", ":3", ":4",

etc.
Thank you for your help


--
Message posted via http://www.officekb.com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Checking before opening "activate:newwindow" to see if already opened

Tom Ogilvy wrote:
Post the offensive code. It is easier/more useful to you to edit your
existing code than to hypothesize a lot of information and write a new
macro.

I assume this new window is relative to the current workbook.

What kind of button - commandbar button?

When a macro button (name = ON") is pressed, I want to open a new window, if
not already opened, with a wildcard extension of "*:2" and then close if if
this macro button is pressed (name = Off). Currently, when I press ON, it
just keeps opening a new window and gives extensions ":2", ":3", ":4", etc.
Thank you for your help




By the way, I meant to say MSG boxes , not dialog boxes in my other
explanation. Thanks


--
Message posted via http://www.officekb.com
Reply
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
How to Activate "Show all" in a Protected Shared Workbook Anahid Excel Discussion (Misc queries) 1 November 27th 09 01:44 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Excel files suddenly "read only" or encrypted and cannot be opened jp Excel Discussion (Misc queries) 0 March 9th 07 07:18 PM
Shortcut key for "Paste Options" and "Error Checking" buttons? johndog Excel Discussion (Misc queries) 1 October 6th 06 11:56 AM
selection.find shortening the procedure by skipping the "activate" part Peter[_21_] Excel Programming 1 November 10th 04 11:56 PM


All times are GMT +1. The time now is 10:48 PM.

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

About Us

"It's about Microsoft Excel"