![]() |
#1
|
|||
|
|||
![]()
Hi all,
The following code is an example of what I'm using to copy cell G17 ("ERPA") to cell A2 in "EPRALog", but what is doing is copying the formulas. I just want to copy the values. I tried several paste options but couldn't get it to work. Code:
Sub CINFO() Worksheets("ERPA").Range("G17").Copy Destination:=Worksheets("ERPALog").Range("A2") End Sub Other than the code shown above, what I'm looking for is when I select cell B8 ("FY 17-001--which has a drop down menu) in "ERPA", it will populate the following cells in row 2 in the "ERPALog". ERPA EPRALog From To B8 A2 C5 B2 B15 C2 B16 D2 B17 E2 G17 F2 J17 G2 H18 H2 G19 I2 B20 J2 Therefore, every time I select a new request number from cell B8, for example, "FY 17-002", I want to copy and paste the below cells from "ERPA" to row 3 in "ERPALog". ERPA EPRALog From To B8 A3 C5 B3 B15 C3 B16 D3 B17 E3 G17 F3 J17 G3 H18 H3 G19 I3 B20 J3 So, if my next request is FY-17-003, then I want the values to go to row 4. I hope what I wrote is not confusing. If so, please accept my apologies, and let me know if more information is needed. Thanks in advance for your cooperation. Cheers!!! |
#2
|
||||
|
||||
![]() Quote:
Worksheets("ERPALog").Range("A2").Value = Worksheets("ERPA").Range("G17").Text
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to find a macro that will copy a cell and paste that value to a specific sheet | bryans88 | Excel Programming | 1 | 12-23-2015 01:40 PM |
a macro that can copy data from copy.xls to our current excel macro.xls based on criteria: | udhaya | Excel Programming | 1 | 11-12-2015 10:12 AM |
Want to change Macro to copy and paste data to new sheet | Vortex69 | Excel Programming | 0 | 12-23-2014 09:53 PM |
VBA macro to copy range and paste in next blank row | tune2grow | Excel Programming | 0 | 09-03-2014 08:25 PM |
![]() |
jpol | Excel Programming | 1 | 03-01-2013 05:53 AM |