There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
adware audio bios blue screen boot bsod computer crash dell driver email error excel firefox freeze freezing google hard drive hardware hijackthis install internet laptop linux malware network no sound outlook problem reboot router screen server slow sound speakers spyware startup trojan usb video virus vista vundo webcam windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
want to create button in Excel that can copy a column return the same when pasted

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
19-Oct-2008, 09:23 AM #1
want to create button in Excel that can copy a column return the same when pasted
hi ,
i want to create a button in excel that when clicked can copy a column say (from A1 to A25)and store it. now i can paste the same either in word or in notepad.
can it be created.

i think bomb #21 CAN HELP ME.
bomb #21's Avatar
Distinguished Member with 7,144 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
19-Oct-2008, 12:12 PM #2
What version do you have? Which part is the problem, creating the button or the code?
Rollin_Again's Avatar
Distinguished Member with 3,709 posts.
 
Join Date: Sep 2003
Location: Atlanta, GA - Planet Earth
Experience: Brilliant When Sober
19-Oct-2008, 12:14 PM #3
Can you explain to us what exactly you are trying to accomplish? It's hard to provide a solution when we do not understand the "big picture"

Do you need to retain any type of formatting or just copying the value to another application? What determines the range or last row to copy? More details please.

Regards,
Rollin
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
19-Oct-2008, 12:14 PM #4
creating the code...actually i never tried to use button also.. this is the first time i am doing so.
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
19-Oct-2008, 12:19 PM #5
this is for rolling
actually its like i have coordinates of points (x,y) that i want to copy and directly paste it in word. they are in column A (x) and column B(y). now i want to copy that first column A(x) and then paste it in notepad or word.similarly for the column B(y).
so i want two buttons one for copying X coordinates andy other for y coordinate.
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
19-Oct-2008, 12:21 PM #6
my version is Excel2003
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
19-Oct-2008, 12:27 PM #7
i think this will do my work...

Private Sub CommandButton1_Click()
Range("A1:A25").Copy
End Sub
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
20-Oct-2008, 10:25 AM #8
h guys
i am back with the solution as provided. Now i am attaching a file with it. i want to know that when the button is clicked it copies the values but i want that the user cant see that from where it has been copied. can it be done.i know this sheet can be better modified and this is possible.
please give me suggestion and if possible provide me better approact to do so.

with regards,
abhisekh
Attached Files
File Type: xls Star co-ordinate generator standard.xls (110.0 KB, 335 views)
bomb #21's Avatar
Distinguished Member with 7,144 posts.
 
Join Date: Jul 2005
Location: The void AKA edge of the Fens
Experience: I bent my wookie :(
20-Oct-2008, 02:20 PM #9
Copy to a hidden sheet first?

Range("A2:A25").Copy Sheets("Hidden").Range("A2")
Sheets("Hidden").Range("A2:A25").Copy
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,411 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
20-Oct-2008, 03:43 PM #10
You still haven't explained everything. You want to copy your X and Y coordinates. Ok, we got that. But WHY are you copying them into Word or Notepad? What is the point? And why copy separately? What is the purpose here?
trustmeasfrnd's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Oct 2008
Location: India
Experience: Beginner
23-Oct-2008, 02:01 PM #11
hey how to increase the font size in the attached excel sheet for list drop down box?
actually its too small...but i cant find any way. still i know it can be easily done but how ..that i dont know?
Zack Barresse's Avatar
Computer Specs
Distinguished Member with 4,411 posts.
 
Join Date: Jul 2004
Location: Oregon, United States
Experience: I'ma learnin'!
24-Oct-2008, 02:20 AM #12
Can you explain any more than that? Is it data validation list drop down? If that is the case, there is no way. You must increase the zoom and lower the font of everything else to get it to look the same. Kind of crappy, but a simple workaround. May or may not work for you. If it doesn't, look at using a control (i.e. from the Controls Toolbox) where you can manipulate the font size.
Closed Thread Bookmark and Share

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.

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 09:11 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.