|
|
 |
| Excel VBA Discuss using VBA for Excel programming. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Excel VBA section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 23rd, 2009, 04:08 AM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
How to read Columns ?
hi,
anyone know how to code to create a new worksheet?
i only manage to read row didn't manage to read column.
i would like to read my sheet1 column5 to 7 and copy it to a new worksheet.
Last edited by waka : October 23rd, 2009 at 06:07 AM.
|

October 23rd, 2009, 05:42 PM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Maybe something like this?
Code:
Sheets("Sheet1").Columns("E:G").Copy
Sheets.Add
ActiveSheet.Paste
Application.CutCopyMode = False
|
|
The Following User Says Thank You to joe1946 For This Useful Post:
|
waka (October 26th, 2009) |

October 26th, 2009, 03:09 AM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
how can i make it, just to copy the value over instead of copying together with the blank space?
|

November 7th, 2009, 10:43 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2005
Location: , , .
Posts: 420
Thanks: 0
Thanked 14 Times in 14 Posts
|
|
Quote:
Originally Posted by waka
how can i make it, just to copy the value over instead of copying together with the blank space?
|
Can you try if the following works:
Code:
Sheets("Sheet1").Columns("E:G").UsedRange.Copy
Cheers
Shasur
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |