473,383 Members | 1,795 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,383 software developers and data experts.

pastespecial in excel

hello!

i have a problem in pasting the content of a cell into another. i have
tried it with the following code:

excel = createobject ("excel.application")
with excel
.range ("B7").pastespecial (.xlpastetype.xlpastevalues)
end with

and with the code from the example on the microsoft msdn homepage:

excel=createobject ("excel.application")
with excel
.range ("b7").pastespecial paste:=xlpastevalues
end with

excel is defined as excel.application

thanks in advance

adrian
Nov 20 '05 #1
1 7733
Here is some old code I have that does a paste:

xlSheet.Range("G3") = 0
xlSheet.Range("G3").Select
Selection.Copy
xlSheet.Range("G3", Cells(3, 8 + giRange - 2)).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
False, Transpose:=False

Your code doesn't appear to be using a Sheet object. Not sure that would
work...

HTH,
Greg
"adrian" <ak*******@arcor.de> wrote in message
news:6a**************************@posting.google.c om...
hello!

i have a problem in pasting the content of a cell into another. i have
tried it with the following code:

excel = createobject ("excel.application")
with excel
.range ("B7").pastespecial (.xlpastetype.xlpastevalues)
end with

and with the code from the example on the microsoft msdn homepage:

excel=createobject ("excel.application")
with excel
.range ("b7").pastespecial paste:=xlpastevalues
end with

excel is defined as excel.application

thanks in advance

adrian

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
3
by: Rich Pu | last post by:
Hi Guys, Hope you can help I am trying to interact with excel and I am having a problem with pastespecial values I am trying excelobj.activesheet.pastespecial paste:=xlvalues it keeps...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
0
by: adrian | last post by:
hello! i have a problem in pasting the content of a cell into another. i have tried it with the following code: excel = createobject ("excel.application") with excel .range...
0
by: Antonhino | last post by:
I have made a code which copy a text from a xml file and paste it into word. But when the text is a serie of ten same letters like 'aaaaaaaaaa', the string pasted is a number '0000000105'. What...
1
by: pran123456 | last post by:
Hi All, I am developing an application (MS Word Add-In) to facilitate the possibility to copy a certain area in a word and paste in a form of a picture. Currentlt I have managed to do it using the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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.