Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Show the Paste Names dialog via code

I'm trying to find the code to display the Paste Names dialog box. You can
usually get this to pop up with F3 when working in the standard user
interface in Windows versions of Excel.

I've tried the following code, which works just fine for some built in
dialog boxes, but errors out for Paste names:

Application.Dialogs(xlDialogPasteNames).Show

This statement results in the RunTime 1004 message.

If I change this to application.Dialogs(xlDialogDefineName).Show the Define
names dialog box pops right up.

Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Show the Paste Names dialog via code

What exactly are you trying to do with this? It may be able to be done
another way.

Barb Reinhardt



"Ted M H" wrote:

I'm trying to find the code to display the Paste Names dialog box. You can
usually get this to pop up with F3 when working in the standard user
interface in Windows versions of Excel.

I've tried the following code, which works just fine for some built in
dialog boxes, but errors out for Paste names:

Application.Dialogs(xlDialogPasteNames).Show

This statement results in the RunTime 1004 message.

If I change this to application.Dialogs(xlDialogDefineName).Show the Define
names dialog box pops right up.

Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Show the Paste Names dialog via code

If it is any consolation, I can't get it to open either. Maybe it has been
scrapped by MS. I checked the web for any previous bug reports and did not
see any. Haven't checked knowledge base yet.


"Ted M H" wrote in message
...
I'm trying to find the code to display the Paste Names dialog box. You
can
usually get this to pop up with F3 when working in the standard user
interface in Windows versions of Excel.

I've tried the following code, which works just fine for some built in
dialog boxes, but errors out for Paste names:

Application.Dialogs(xlDialogPasteNames).Show

This statement results in the RunTime 1004 message.

If I change this to application.Dialogs(xlDialogDefineName).Show the
Define
names dialog box pops right up.

Any ideas?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 83
Default Show the Paste Names dialog via code

Thanks for responding.

Actually, I need the equivalent of F3 for the Mac OS versions of Excel. It
just takes too much time to do Insert Name paste from the menu compared
to just doing F3 in the windows world.

My thought was that I could just write a simple macro to pop up the dialog
box and assign a short cut key to the macro. No such luck, so far.

I know this is the windows forum, but I think if I can get a macro to work
in windows I can then get it to work under the Mac OS versions. There just
aren't enough users at the Mac forum to get answers to obscure questions like
this one...



"Barb Reinhardt" wrote:

What exactly are you trying to do with this? It may be able to be done
another way.

Barb Reinhardt



"Ted M H" wrote:

I'm trying to find the code to display the Paste Names dialog box. You can
usually get this to pop up with F3 when working in the standard user
interface in Windows versions of Excel.

I've tried the following code, which works just fine for some built in
dialog boxes, but errors out for Paste names:

Application.Dialogs(xlDialogPasteNames).Show

This statement results in the RunTime 1004 message.

If I change this to application.Dialogs(xlDialogDefineName).Show the Define
names dialog box pops right up.

Any ideas?

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
Show the Outline Dialog Box TKS_Mark Excel Discussion (Misc queries) 0 May 14th 08 08:07 PM
List Worksheet Names in a Dialog [email protected] Excel Programming 1 September 12th 07 09:19 PM
Group Names Change Upon Paste, Kills Code. Doug Glancy Excel Programming 0 February 7th 04 04:19 PM
Group Names Change Upon Paste, Kills Code. Bull Splat Excel Programming 1 February 7th 04 04:05 PM
VBA code to show a save as dialog does not work Kevin Excel Programming 4 November 17th 03 08:36 AM


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