Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default XlBuiltInDialog.xlDialogPatterns

I am trying to show the format shape dialog in Excel 2007 programatically
when a line is selected, but the below code does not show the form or throw
an exception either, anyone have any ideas?
I have tried setting screen updating to true.


Microsoft.Office.Interop.Excel.Line object it selected

Application.Dialogs[Microsoft.Office.Interop.Excel.XlBuiltInDialog.xlD ialogPatterns].Show(missing,
missing, missing, missing, missing, missing, missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing,
missing, missing, missing, missing, missing);

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default XlBuiltInDialog.xlDialogPatterns

I know zero about 'interop' but the VB equivalent works:
Application.Dialogs(xlDialogPatterns).Show

Have you had success showing any built-in dialog? I mean, are you sure it's
possible?

--
Jim
"Laura Battarbee" wrote in
message ...
|I am trying to show the format shape dialog in Excel 2007 programatically
| when a line is selected, but the below code does not show the form or
throw
| an exception either, anyone have any ideas?
| I have tried setting screen updating to true.
|
|
| Microsoft.Office.Interop.Excel.Line object it selected
|
|
Application.Dialogs[Microsoft.Office.Interop.Excel.XlBuiltInDialog.xlD ialogPatterns].Show(missing,
| missing, missing, missing, missing, missing, missing, missing, missing,
| missing, missing, missing, missing, missing, missing, missing, missing,
| missing, missing, missing, missing, missing, missing, missing, missing,
| missing, missing, missing, missing, missing);
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default XlBuiltInDialog.xlDialogPatterns

Thanks Jim.

Tried it in VBA too...

With a line object selected I am able to run the code
"Application.Dialogs(xlDialogPatterns).Show" in Excel 2003, but in Excel 2007
the line of code does nothing.

I think the dialog box has changed between the versions. For example in
2003 the dialog box has the title "Format AutoShape" whereas in 2007 it says
"Format Shape" and has a lot more going on in it (has the line style tab
selected).

Anyone know how to call the 2007 dialog box?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default XlBuiltInDialog.xlDialogPatterns

but in Excel 2007 the line of code does nothing.

Not so for me. With a line selected I get the "Format Object" dialog which
appears to be the same thing as the "Format AutoShape" dialog in Excel 2003.


--
Jim
"Laura Battarbee" wrote in
message ...
| Thanks Jim.
|
| Tried it in VBA too...
|
| With a line object selected I am able to run the code
| "Application.Dialogs(xlDialogPatterns).Show" in Excel 2003, but in Excel
2007
| the line of code does nothing.
|
| I think the dialog box has changed between the versions. For example in
| 2003 the dialog box has the title "Format AutoShape" whereas in 2007 it
says
| "Format Shape" and has a lot more going on in it (has the line style tab
| selected).
|
| Anyone know how to call the 2007 dialog box?


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
Advice on Using "xlDialogPatterns" Les Stout[_2_] Excel Programming 4 August 8th 07 07:22 AM


All times are GMT +1. The time now is 11:55 AM.

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"