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

Hi,

I trying to get some code to run invisibly to the user. The code is:

WksSource.Range("testing").Copy
WksRaw.Range("A1").PasteSpecial xlPasteValues

This works fine but the user can see whats happening.

I've tried:

WksSource.Range("testing").Copy _
Destination: WksRaw.Range("A1").PasteSpecial xlPasteValues

but this won't allow the pastespecial method which is required. Is this a
syntax issue or is there some otherway I can copy and PastSpecial without
the code visibly switching between sheets.

Thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default pastespecial question

Paul,
Application.ScreenUpdating = False
Donna

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default pastespecial question

Paul,

Have you tried

application.screenupdating=false

before you run your code, then

application.screenupdating=true

at the end of the macro?

Hope this helps

Pete


"Paul" wrote:

Hi,

I trying to get some code to run invisibly to the user. The code is:

WksSource.Range("testing").Copy
WksRaw.Range("A1").PasteSpecial xlPasteValues

This works fine but the user can see whats happening.

I've tried:

WksSource.Range("testing").Copy _
Destination: WksRaw.Range("A1").PasteSpecial xlPasteValues

but this won't allow the pastespecial method which is required. Is this a
syntax issue or is there some otherway I can copy and PastSpecial without
the code visibly switching between sheets.

Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default pastespecial question

Thanks for the reply Donna,

I tried that but after

WksSource.Range("testing").Copy

I can see the range being highlighted for copying ( Same as if you Ctrl +
C). Even when the procedure ends the range remain highlighted

Any other suggestions?


wrote in message
oups.com...
Paul,
Application.ScreenUpdating = False
Donna



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default pastespecial question

Paul,
instead of using pastespecial to copy the value just set the value of the
cell.

WksRaw.Range("A1").Value = WksSource.Range("testing").Value

Fred



"Paul" <paulm dot c @ iol dot ie wrote in message
...
Hi,

I trying to get some code to run invisibly to the user. The code is:

WksSource.Range("testing").Copy
WksRaw.Range("A1").PasteSpecial xlPasteValues

This works fine but the user can see whats happening.

I've tried:

WksSource.Range("testing").Copy _
Destination: WksRaw.Range("A1").PasteSpecial xlPasteValues

but this won't allow the pastespecial method which is required. Is this a
syntax issue or is there some otherway I can copy and PastSpecial without
the code visibly switching between sheets.

Thanks in advance





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default pastespecial question

I can see the range being highlighted for copying ( Same as if you
Ctrl + C). Even when the procedure ends the range remain highlighted


application.cutcopymode = false

will remove that.

arno
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
PasteSpecial Vicar Excel Programming 2 January 28th 05 02:03 PM
PasteSpecial Kevin Excel Programming 3 October 7th 04 01:07 PM
pastespecial on a worksheet question mike Excel Programming 1 February 11th 04 08:03 PM
vba pastespecial joao Excel Programming 2 November 14th 03 03:31 PM
pastespecial billQ Excel Programming 2 July 29th 03 11:39 PM


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