Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba programming copy/ paste cell values help.

Hi i have hundreds of values in an excel workbook with formulas, etc...
I want to be able to write a macro that would autmoatically take th
vertical columns and have all the values go horizontally and vic
versa.

FOr exmaple.

2 3 4 5 6 would be when i run the macro...

2
4
6
7

and when i run the macro again it should be

2 3 4 5 6.

I need this to work from sheet to sheet with lots and lots of data.
am stumped! thanks

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vba programming copy/ paste cell values help.

Look at turning on the macro recorder and using copy , then paste special
selecting transpose.

there really isn't enough information here to provide much help. You have
to have someplace to put your data when you transpose it. Since you say you
have a lot of data, it is unclear where it is located and where you want to
place it. Also, rows go to 65536, but columns only go to 256 - more
questions.

Since your values are produced with formulas, it would be important to
understand if you want them to continue to point at the same locations
(requires absolute references) or what you want them to do.

--
Regards,
Tom Ogilvy


yaoming wrote in message
...
Hi i have hundreds of values in an excel workbook with formulas, etc...
I want to be able to write a macro that would autmoatically take the
vertical columns and have all the values go horizontally and vice
versa.

FOr exmaple.

2 3 4 5 6 would be when i run the macro...

2
4
6
7

and when i run the macro again it should be

2 3 4 5 6.

I need this to work from sheet to sheet with lots and lots of data. I
am stumped! thanks.


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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default vba programming copy/ paste cell values help.

well imagine a sheet is like this all filled:


1234
4567
8910


So, i want a macro with data that is already on the sheet to switc
spots, or positions to this.

148
259
361
470

Is this possible. But for now, i just want to find out a way to cop
and paste the cells. Formulas are not important

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vba programming copy/ paste cell values help.

Select the data, do edit =Copy, select another location, do Edit=Paste
Special and select the Transpose box at the bottom of the dialog.

--
Regards,
Tom Ogilvy

"yaoming " wrote in message
...
well imagine a sheet is like this all filled:


1234
4567
8910


So, i want a macro with data that is already on the sheet to switch
spots, or positions to this.

148
259
361
470

Is this possible. But for now, i just want to find out a way to copy
and paste the cells. Formulas are not important.


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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy / paste as values KRK New Users to Excel 1 March 21st 10 12:49 PM
Need help with macro to copy, paste, and clear cell values Anthony[_5_] Excel Discussion (Misc queries) 8 December 21st 09 02:11 PM
Copy and paste up to values in last row Scott Excel Discussion (Misc queries) 2 September 23rd 09 10:23 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
copy / paste values for certain range Eric Dreshfield Excel Programming 2 September 10th 03 04:04 PM


All times are GMT +1. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"