Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Works every second time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hih - 20 Jan 2006 13:47 GMT
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:confused:

Signature

hih

DaveO - 20 Jan 2006 13:59 GMT
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.

> Hello!
> Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
[quoted text clipped - 4 lines]
>
> hih:confused:
Dave Peterson - 20 Jan 2006 18:06 GMT
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.

> Hello!
> Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
[quoted text clipped - 10 lines]
> hih's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=30672
> View this thread: http://www.excelforum.com/showthread.php?threadid=503315

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.