473,379 Members | 1,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Copy paste!!!!!!!!!!

16
hello friends.!!!!!!!


How can I copy Excel's Cell value and paste it in another CELL.

I have to copy in range like
copy(range(a1:d1))

and then paster like
paste(range(a3:d3))

I need help ......

thanks in advance!!!!!!!!
Mar 28 '07 #1
3 3481
DPK
16
anyone to help here with VBA????????????
Mar 28 '07 #2
SammyB
807 Expert 512MB
hello friends.!!!!!!!


How can I copy Excel's Cell value and paste it in another CELL.

I have to copy in range like
copy(range(a1:d1))

and then paster like
paste(range(a3:d3))

I need help ......

thanks in advance!!!!!!!!
If the ranges are the same size, you can just do "source.Copy destination" for example
Expand|Select|Wrap|Line Numbers
  1. Range("A1:D1").Copy Range("A2:D2")
but since you want to transpose, you must do a copy and then a PasteSpecial, Transpose just like you would manually in Excel. In code, this looks like:
Expand|Select|Wrap|Line Numbers
  1.     Range("A1:D1").Copy
  2.     Range("A3:A6").PasteSpecial Paste:=xlAll, Transpose:=True
  3.     Application.CutCopyMode = False
The way to figure this out is to record a macro, doing the operation, and then look at the code. HTH --Sam
Mar 28 '07 #3
DPK
16
I soved my problem.
Thank Yoy very much SammyB!!!!!!!!!!!
:-)




If the ranges are the same size, you can just do "source.Copy destination" for example
Expand|Select|Wrap|Line Numbers
  1. Range("A1:D1").Copy Range("A2:D2")
but since you want to transpose, you must do a copy and then a PasteSpecial, Transpose just like you would manually in Excel. In code, this looks like:
Expand|Select|Wrap|Line Numbers
  1.     Range("A1:D1").Copy
  2.     Range("A3:A6").PasteSpecial Paste:=xlAll, Transpose:=True
  3.     Application.CutCopyMode = False
The way to figure this out is to record a macro, doing the operation, and then look at the code. HTH --Sam
Mar 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: The Flyer | last post by:
Hi Sorry for posting this message to so many groups, but I was not sure which group the windows keyboard experts would be reading, so I ventured to post it to all of them. I want to map or...
3
by: Faith | last post by:
Hello. I need to take a column from Excel(unknown amount of rows) that will be selected by the user and copy those cells. Then I will need to paste those cells into the first column in a Data...
4
by: Legendary Pansy | last post by:
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting...
3
by: Rachel Suddeth | last post by:
This may not be the right forum, but it's a problem I chiefly come across when trying to post here. When I do a copy/paste from VS, the text always looks really weird (and even if I'm in an...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
0
by: NetronProject | last post by:
My copy/paste operation results in a MemoryStream full of '\0' characters on the Clipboard. Maybe my approach to copy/paste is wrong when handling generic types. All entries in the CollectionBase...
0
by: squirrelonfire | last post by:
Hi I run postgreSQL from a remote server like this SSH -X cnguyen_db@okaram.spsu.edu ....enter the password Then I run bluefish& and psql The problem I'm having is that I can't copy and paste...
2
by: al_johnson222 | last post by:
>From any page, I want to be able to call a JS function that will do the equivelant of select all, and copy. This data will then be posted to a page that will log it. This would be easy using...
8
by: jh | last post by:
I'd like to copy/paste into a listbox during runtime. I can do this for a textbox but can't figure out how to accomplish this for a listbox. Any help? Thanks.
3
by: questionit | last post by:
Some websites disable the Windows copy and paste feature to use on thier website. A text can not be copied and pasted either from using shortcuts : CTRL+C, CTRL+V or from using copy, paste option...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.