Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Override prompt for Office Clipboard

Good Morning,

I am using a spreadsheet as a template to format headers for imported
spreadsheets. Once the file is open, I use a macro that opens the template
file, copies the necessary data, pastes the data in the imported file, and
then closes the template file.

The problem is in closing the template file, the macro hangs because a
dialogue box pops up prompting whether to keep the copied data on the
clipboard. Is there a way to override this and select "No" as the option?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Override prompt for Office Clipboard

Try adding:

application.cutcopymode = false

After you're finished with the copy|paste.

Brent E wrote:

Good Morning,

I am using a spreadsheet as a template to format headers for imported
spreadsheets. Once the file is open, I use a macro that opens the template
file, copies the necessary data, pastes the data in the imported file, and
then closes the template file.

The problem is in closing the template file, the macro hangs because a
dialogue box pops up prompting whether to keep the copied data on the
clipboard. Is there a way to override this and select "No" as the option?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Override prompt for Office Clipboard

Good Morning Dave,

Thanks for the post. I tried that but the dialogue box still seems to
appear. Any suggestions?

Thanks,

"Dave Peterson" wrote:

Try adding:

application.cutcopymode = false

After you're finished with the copy|paste.

Brent E wrote:

Good Morning,

I am using a spreadsheet as a template to format headers for imported
spreadsheets. Once the file is open, I use a macro that opens the template
file, copies the necessary data, pastes the data in the imported file, and
then closes the template file.

The problem is in closing the template file, the macro hangs because a
dialogue box pops up prompting whether to keep the copied data on the
clipboard. Is there a way to override this and select "No" as the option?

Thanks


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Override prompt for Office Clipboard

I figured out a solution.

If I place the "Application.cutcopymode = false" after the close command,
the dialogue box will always appear.

But if I place the Application.cutcopymode = false before the close command,
the board is cleared, file is closed, and no dialogue box pops up.
"Brent E" wrote:

Good Morning Dave,

Thanks for the post. I tried that but the dialogue box still seems to
appear. Any suggestions?

Thanks,

"Dave Peterson" wrote:

Try adding:

application.cutcopymode = false

After you're finished with the copy|paste.

Brent E wrote:

Good Morning,

I am using a spreadsheet as a template to format headers for imported
spreadsheets. Once the file is open, I use a macro that opens the template
file, copies the necessary data, pastes the data in the imported file, and
then closes the template file.

The problem is in closing the template file, the macro hangs because a
dialogue box pops up prompting whether to keep the copied data on the
clipboard. Is there a way to override this and select "No" as the option?

Thanks


--

Dave Peterson

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
office clipboard Larry Excel Discussion (Misc queries) 3 March 17th 07 04:39 AM
Office Clipboard hdfixitup Excel Discussion (Misc queries) 0 June 6th 06 04:14 AM
Need to turn off prompt about putting on clipboard or not... KyWilde Excel Discussion (Misc queries) 0 April 27th 05 11:37 PM
Office Clipboard wllee Excel Discussion (Misc queries) 0 April 5th 05 04:31 PM
Is there a way keep the office clipboard from returning? droach61 Setting up and Configuration of Excel 1 February 23rd 05 06:21 PM


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