Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Excel: Copy/Paste Macro Code Help

Reply  
Thread Tools
Paj90909's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: May 2009
Experience: Intermediate
19-May-2009, 08:43 PM #1
Question Solved: Excel: Copy/Paste Macro Code Help
Hi. I am trying to run a macro to copy items on 1 sheet and have it paste them on the 2nd and 3rd sheet. I am trying but can't quite seem to get the excel code to do what I want. I can't post a copy of it because I accidentally deleted it.

Can anyone help me?
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-May-2009, 09:06 PM #2
We can't provide you help unless you provide a detailed explation of what the macro is supposed to do. Please be detailed including what cells/rows should be copied and where they will be copied to. Please try to post an example if possible.

Regards,
Rollin
Paj90909's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: May 2009
Experience: Intermediate
19-May-2009, 09:14 PM #3
So from columns A2 down to around A 100 I am trying to take all the codes I have gathered in that information box and paste all of that into the second sheet in the exact same spot in the exact same way. For example a code I want to paste could be PIE-K01, I just want to be able to run the macro and have all these codes in the same spot on the second sheet. Or I just want to know the codes I need to run to do a simple copy paste in 1 box even.

Paul.
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-May-2009, 10:32 PM #4
Why can't you just use the macro recorder to create your macro? Post some sample code from the macro recorder and we'll show you how to alter it for your own needs.

Regards,
Rollin
Paj90909's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: May 2009
Experience: Intermediate
19-May-2009, 11:10 PM #5
Sorry about that I finally found it out. But I would like to know how to increase the copy range like A1 : A174 instead of just 99 without having to remaking a macro. Here is my code:


'

'
Range("A2:A100").Select
Selection.Copy
Sheets("Sheet2").Select
Range("A2").Select
ActiveSheet.Paste
Range("C4").Select
End Sub



Thanks, Paul
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-May-2009, 11:15 PM #6
Are you trying to copy everything in column A or just a certain range? The macro can be modified to determine the last cell in column A that contains data and use that as the end of the range. Will that work for you?

Regards,
Rollin
Paj90909's Avatar
Computer Specs
Junior Member with 6 posts.
 
Join Date: May 2009
Experience: Intermediate
19-May-2009, 11:18 PM #7
Ya that would rock. Can you tell me how?
Rollin_Again's Avatar
Senior Member with 4,273 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
20-May-2009, 04:44 PM #8
Use this code instead.

Code:
Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row).Select
Selection.Copy
Sheets("Sheet2").Select
Range("A2").Select
ActiveSheet.Paste
Range("C4").Select
End Sub
Regards,
Rollin
Reply

Tags
copy, copy and paste, excel, macro, paste

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:09 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.