Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hih hih is offline
external usenet poster
 
Posts: 1
Default Works every second time


Hello!
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

In one of my Sub's this Paste-function only work every second time.
Can you help me to make it work -every- time?

hih


--
hih
------------------------------------------------------------------------
hih's Profile: http://www.excelforum.com/member.php...o&userid=30672
View this thread: http://www.excelforum.com/showthread...hreadid=503315

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Works every second time

Without seeing the rest of the code, I'm going to guess that the 'Selection.'
part is the bit thats causing you your issue here.

If you post the rest of at least post how the selction is derived it may help.

HTH.

"hih" wrote:


Hello!
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

In one of my Sub's this Paste-function only work every second time.
Can you help me to make it work -every- time?

hih


--
hih
------------------------------------------------------------------------
hih's Profile: http://www.excelforum.com/member.php...o&userid=30672
View this thread: http://www.excelforum.com/showthread...hreadid=503315


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Works every second time

My guess is that you do something that clears the clipboard.

You could add this to check:

msgbox application.cutcopymode
if it's false, your pastespecial will fail.

Either rearrange the pasting lines in a nice fashion or just copy the original
range before you try pasting again.



hih wrote:

Hello!
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

In one of my Sub's this Paste-function only work every second time.
Can you help me to make it work -every- time?

hih

--
hih
------------------------------------------------------------------------
hih's Profile: http://www.excelforum.com/member.php...o&userid=30672
View this thread: http://www.excelforum.com/showthread...hreadid=503315


--

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
macro that works one time every day Spiros Excel Discussion (Misc queries) 2 September 19th 08 12:00 PM
Time for M$ to fix incompatibility with Office & Works Steve Garry Excel Discussion (Misc queries) 0 April 20th 06 09:10 PM
how do I create a hyperlink that works more than one time mcgrath Excel Discussion (Misc queries) 0 February 13th 06 03:41 PM
CopyPicture only works second time AllanS Excel Programming 2 September 20th 05 01:32 PM
RPC ERROR - 1ST TIMES WORKS FINE - 2ND TIME ERRORS OUT PoK Excel Programming 0 August 5th 03 08:51 PM


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