Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Tom Ogilvy - 'Snap to'

Tom

How do you know, or where do you find, the ID number?

J
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Tom Ogilvy - 'Snap to'

Try this

http://support.microsoft.com/default...b;EN-US;213552
XL2000: List of ID Numbers for Built-In CommandBar Controls

http://support.microsoft.com/default...11&Product=xlw
XL2000: Sample Macros to Return ID for a CommandBar Control


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jngi" wrote in message ...
Tom

How do you know, or where do you find, the ID number?

J



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Tom Ogilvy - 'Snap to'

Sub Macro2()
Debug.Print _
CommandBars("Drawing").Controls("D&raw") _
.Controls("&Snap").Controls("To &Grid").ID
End Sub

or

Sub Macro2()
MsgBox _
CommandBars("Drawing").Controls("D&raw") _
.Controls("&Snap").Controls("To &Grid").ID
End Sub

But Ron de Bruin also posted a link to some KB articles that list ID numbers
of the controls.

--
Regards,
Tom Ogilvy

"jngi" wrote in message
...
Tom

How do you know, or where do you find, the ID number?

J



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Tom Ogilvy - 'Snap to'

MS changed some of the ID numbers between xl97 and xl2000, so here is a
reference to the xl97 verions


http://support.microsoft.com/?id=159466
Q159466 - XL97: List of ID Numbers for Built-In Command Bar Controls

http://support.microsoft.com/?id=162814
Q162814 - XL97: Sample Macros to Return ID for a CommandBar Control

--
Regards,
Tom Ogilvy




"Tom Ogilvy" wrote in message
...
Sub Macro2()
Debug.Print _
CommandBars("Drawing").Controls("D&raw") _
.Controls("&Snap").Controls("To &Grid").ID
End Sub

or

Sub Macro2()
MsgBox _
CommandBars("Drawing").Controls("D&raw") _
.Controls("&Snap").Controls("To &Grid").ID
End Sub

But Ron de Bruin also posted a link to some KB articles that list ID

numbers
of the controls.

--
Regards,
Tom Ogilvy

"jngi" wrote in message
...
Tom

How do you know, or where do you find, the ID number?

J





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Tom Ogilvy - 'Snap to'

Excellent fellows!

Muchos gracias!

"Ron de Bruin" wrote:

Try this

http://support.microsoft.com/default...b;EN-US;213552
XL2000: List of ID Numbers for Built-In CommandBar Controls

http://support.microsoft.com/default...11&Product=xlw
XL2000: Sample Macros to Return ID for a CommandBar Control


--
Regards Ron de Bruin
http://www.rondebruin.nl


"jngi" wrote in message ...
Tom

How do you know, or where do you find, the ID number?

J






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Tom Ogilvy - 'Snap to'

Excellent fellows!

Muchos gracias!

J

"Tom Ogilvy" wrote:

Sub Macro2()
Debug.Print _
CommandBars("Drawing").Controls("D&raw") _
.Controls("&Snap").Controls("To &Grid").ID
End Sub

or

Sub Macro2()
MsgBox _
CommandBars("Drawing").Controls("D&raw") _
.Controls("&Snap").Controls("To &Grid").ID
End Sub

But Ron de Bruin also posted a link to some KB articles that list ID numbers
of the controls.

--
Regards,
Tom Ogilvy

"jngi" wrote in message
...
Tom

How do you know, or where do you find, the ID number?

J




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
snap to from vba jngi[_2_] Excel Programming 5 June 18th 04 03:05 PM
switch on 'snap to' from vba jngi[_2_] Excel Programming 3 June 18th 04 02:29 PM
Tom Ogilvy David Joseph Excel Programming 0 April 21st 04 02:57 PM
Tom Ogilvy David Joseph Excel Programming 0 April 21st 04 02:37 PM
Tom Ogilvy David Joseph Excel Programming 1 April 21st 04 12:38 AM


All times are GMT +1. The time now is 05:55 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"