ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Paste special to the active cell (https://www.excelbanter.com/excel-programming/307163-paste-special-active-cell.html)

stakar[_20_]

Paste special to the active cell
 
Hi!
i need some help
I have 200 columns that in the 3nd row on each of them there is a
input box. So, in A3, B3, C3, D3, E3 etc there is an input box. I fil
the input box with numbers and a formula doing a calculation. The resul
of the calculation returns to the column IV starting from the row 4.
I want to copy the column IV and paste special to the column that
last use to activate the input box. (Eg.If i was on D3 and i activat
the input box i want to paste special the column IV to the column
starting from the D4)

Thanks in advance
Stathi

--
Message posted from http://www.ExcelForum.com


BrianB

Paste special to the active cell
 
I wonder why you do not just put formulas underneath the input boxes ...
? However, this macro will do as you request :-

Code:
--------------------

Sub test()
Dim rg As Range
c = ActiveCell.Column
Set rg = ActiveSheet.Range(Cells(4, c), Cells(200, c))
rg.Value = Range("IV4:IV200").Value
End Sub

--------------------



---
Message posted from http://www.ExcelForum.com/


stakar[_21_]

Paste special to the active cell
 
Thanks a lot !
That all I wante

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 08:45 AM.

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