ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Paste Special a string value (https://www.excelbanter.com/excel-programming/399938-paste-special-string-value.html)

Carl

Paste Special a string value
 
I have the following piece of code:

ActiveCell.Offset(1, 0).Value = strA

Is there anyway of populating the cell with the value of StrA as a
pastespecial values? Because StrA has a different format (font and size)
than where it is being posted to.

JLGWhiz

Paste Special a string value
 
I think your options are to either format the "to" cell or use the copy
method to capture the "from" cell format.

"carl" wrote:

I have the following piece of code:

ActiveCell.Offset(1, 0).Value = strA

Is there anyway of populating the cell with the value of StrA as a
pastespecial values? Because StrA has a different format (font and size)
than where it is being posted to.


Carl

Paste Special a string value
 
I thought as much.

Thanks anyway.

"JLGWhiz" wrote:

I think your options are to either format the "to" cell or use the copy
method to capture the "from" cell format.

"carl" wrote:

I have the following piece of code:

ActiveCell.Offset(1, 0).Value = strA

Is there anyway of populating the cell with the value of StrA as a
pastespecial values? Because StrA has a different format (font and size)
than where it is being posted to.



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com