Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VBA and pasting

I have a spreadsheet in Excel (Office 2003). On one sheet is a command
button from the VB toolbox with some code associated with it (I can get more
specific if need be). From what I've gathered from the discussion group, it
seems that it wipes out the ability to paste in the worksheet. I can copy
and paste to another worksheet but cannot paste in this one. Is there an
explanation for this and more important perhaps, is there a work around? I'm
guessing it's something programmatic. Thanks.
--
Pinny
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default VBA and pasting

Hi,

I'm not sure what the problem your having but

Private Sub CommandButton1_Click()
Range("A1").Copy Range("C1")
End Sub

Works for me.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Pinny" wrote in message
...
I have a spreadsheet in Excel (Office 2003). On one sheet is a command
button from the VB toolbox with some code associated with it (I can get
more
specific if need be). From what I've gathered from the discussion group,
it
seems that it wipes out the ability to paste in the worksheet. I can copy
and paste to another worksheet but cannot paste in this one. Is there an
explanation for this and more important perhaps, is there a work around?
I'm
guessing it's something programmatic. Thanks.
--
Pinny


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
pasting David Gerstman Excel Worksheet Functions 2 July 13th 07 08:02 PM
VBA Pasting RLang Excel Programming 1 November 10th 06 05:15 PM
Pasting help Ambrosia[_6_] Excel Programming 6 November 21st 05 03:25 AM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM
Pasting numbers and formulas without pasting format. Dan Excel Discussion (Misc queries) 3 March 27th 05 03:47 AM


All times are GMT +1. The time now is 09:26 AM.

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"