Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2016, 07:15 AM
rsrasc rsrasc is offline Copy/Paste/LastRow Help with Macro Windows 10 Copy/Paste/LastRow Help with Macro Office 2013
Competent Performer
Copy/Paste/LastRow Help with Macro
 
Join Date: Mar 2014
Location: Germany
Posts: 148
rsrasc is on a distinguished road
Default Copy/Paste/LastRow Help with Macro

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!!!
Attached Files
File Type: xlsm ERPA-FY 17-Excel Format-version2.xlsm (71.3 KB, 9 views)
Reply With Quote
  #2  
Old 09-24-2016, 01:25 AM
macropod's Avatar
macropod macropod is offline Copy/Paste/LastRow Help with Macro Windows 7 64bit Copy/Paste/LastRow Help with Macro Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,383
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by rsrasc View Post
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.
How about:
Worksheets("ERPALog").Range("A2").Value = Worksheets("ERPA").Range("G17").Text
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
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
Copy/Paste/LastRow Help with Macro How to do an automation for copy paste, added new row (macro) jpol Excel Programming 1 03-01-2013 05:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft