![]() |
#1
|
|||
|
|||
![]() Code:
Debug.Print (Selection.Type) |
#2
|
||||
|
||||
![]()
Hi tinfanide,
AFAIK, the numeric type is the best you'll get via Debug.Print. For anything fancier, you'd need to create a Select Case statement or something such with your own enumeration list to retrieve the names from the numbers and use a MsgBox instead of Debug.Print.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]() Quote:
If I need the names, I needa manually populate a list? |
#4
|
||||
|
||||
![]()
If you're using late binding (eg when driving Word from Excel and you want compatability with Office versions older than what you're using), you have to use the numeric values. The text versions are only of any use for macros within Word or that use early binding.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Yes, your old thread told me so. It seems that my coming projects are only to be dependent on numeric values.
|
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debug for macro run through button only when sheet protected | leahca | Excel Programming | 0 | 11-24-2011 04:47 AM |
![]() |
hpon | Word | 5 | 12-27-2010 02:27 PM |
Headers - Enumeration | hpon | Word | 1 | 11-02-2010 10:50 AM |
![]() |
anthrax19888 | Word | 1 | 10-12-2009 08:09 AM |
Microsoft Office 2003 winword.exe Debug Error! abnormal prog | elo1bev | Word | 0 | 12-22-2005 10:15 AM |