Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Ctrl-v doesn't work after changing Application.DisplayFormulaBar

I am developing a spreadsheet based tool. When this
workbook is active in Excel I hide the FormulaBar and
StatusBar (by setting Application.DisplayStatusBar=false,
APplication.DisplayFormulaBar=false in Workbook_Activate).
When the user leaves the workbook I redisplay the formula
and status bars.

So I have:
Workbook_Activate()
Application.DisplayStatusBar=false
Application.DisplayFormulaBar=false
exit sub

Workbook_Deactivate()
Application.DisplayStatusBar=true
Application.DisplayFormulaBar=true
exit sub

If I copy a cell in the workbook I am developing and then
move to another workbook I cannot paste that cell. Neither
Ctrl-v nor Edit-Paste work. Excel doesn't seem to see the
clipboard contents but the cell I copied IS in the
clipboard because I can see it when I look at the
Clipboard toolbar in Excel.

If I comment out the lines
Application.DisplayStatusBar=true
Application.DisplayFormulaBar=true
then copy and paste works as normal. These commands seem
to be confusing Excel's knowledge of the clipboard.

Has anyone else encountered this problem? Is there a work-
around????

Many thanks

Lee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Ctrl-v doesn't work after changing Application.DisplayFormulaBar

Works the same way in xl2002, too.

The only work around I have is to not hide them.

You could drop them completely or check application.cutcopymode before you
toggle things.

Option Explicit
Sub Workbook_Activate()
If Application.CutCopyMode = False Then
Application.DisplayStatusBar = False
Application.DisplayFormulaBar = False
End If
End Sub



Lee Drage wrote:

I am developing a spreadsheet based tool. When this
workbook is active in Excel I hide the FormulaBar and
StatusBar (by setting Application.DisplayStatusBar=false,
APplication.DisplayFormulaBar=false in Workbook_Activate).
When the user leaves the workbook I redisplay the formula
and status bars.

So I have:
Workbook_Activate()
Application.DisplayStatusBar=false
Application.DisplayFormulaBar=false
exit sub

Workbook_Deactivate()
Application.DisplayStatusBar=true
Application.DisplayFormulaBar=true
exit sub

If I copy a cell in the workbook I am developing and then
move to another workbook I cannot paste that cell. Neither
Ctrl-v nor Edit-Paste work. Excel doesn't seem to see the
clipboard contents but the cell I copied IS in the
clipboard because I can see it when I look at the
Clipboard toolbar in Excel.

If I comment out the lines
Application.DisplayStatusBar=true
Application.DisplayFormulaBar=true
then copy and paste works as normal. These commands seem
to be confusing Excel's knowledge of the clipboard.

Has anyone else encountered this problem? Is there a work-
around????

Many thanks

Lee


--

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
How to make Ctrl-C, ctrl-V work in Office 2007 hj Excel Discussion (Misc queries) 1 June 23rd 09 01:09 PM
CTRL+F doesn't work Colin Foster Excel Discussion (Misc queries) 2 August 27th 08 01:28 PM
CTRL X...CTRL V...Why does it NOT work? F. Lawrence Kulchar Excel Discussion (Misc queries) 3 April 16th 08 07:11 AM
I can't get the Undo to work even using ctrl z Sogent Setting up and Configuration of Excel 0 March 7th 08 02:12 AM
DisplayFormulaBar = True Silverio Excel Programming 2 September 17th 03 10:47 PM


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