Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select any row, copy data from specific columns

I want to create the following funtionality:

1. Copy data from specific cells in the highlighted row.
2. Paste the data into a different worksheet.

I think I understand how to paste the data into another worksheet, but how
do I get data from specific columns into the clipboard?

Example:

1. User selects row 3.
2. User clicks the "Create Report" button.
3. Excel copies data from 3C, 3D, and 3H.
4. Excel pastes the data into Worksheet "Report."
5. User selects row 8.
6. User clicks the same button.
7. Excel copies data from 8C, 8D, and 8H, overwriting the previous data.

Steps 3 and 7 are where I'm hung up. I'm very new to programing, so any help
is appreciated...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Select any row, copy data from specific columns

Try this TexWolf

Cells(ActiveCell.Row, 1).Range("C1,D1,H1").Copy Sheets("Report").Range("A1")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"TexWolf" wrote in message ...
I want to create the following funtionality:

1. Copy data from specific cells in the highlighted row.
2. Paste the data into a different worksheet.

I think I understand how to paste the data into another worksheet, but how
do I get data from specific columns into the clipboard?

Example:

1. User selects row 3.
2. User clicks the "Create Report" button.
3. Excel copies data from 3C, 3D, and 3H.
4. Excel pastes the data into Worksheet "Report."
5. User selects row 8.
6. User clicks the same button.
7. Excel copies data from 8C, 8D, and 8H, overwriting the previous data.

Steps 3 and 7 are where I'm hung up. I'm very new to programing, so any help
is appreciated...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Select any row, copy data from specific columns

Thanks Ron.

"Ron de Bruin" wrote:

Try this TexWolf

Cells(ActiveCell.Row, 1).Range("C1,D1,H1").Copy Sheets("Report").Range("A1")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"TexWolf" wrote in message ...
I want to create the following funtionality:

1. Copy data from specific cells in the highlighted row.
2. Paste the data into a different worksheet.

I think I understand how to paste the data into another worksheet, but how
do I get data from specific columns into the clipboard?

Example:

1. User selects row 3.
2. User clicks the "Create Report" button.
3. Excel copies data from 3C, 3D, and 3H.
4. Excel pastes the data into Worksheet "Report."
5. User selects row 8.
6. User clicks the same button.
7. Excel copies data from 8C, 8D, and 8H, overwriting the previous data.

Steps 3 and 7 are where I'm hung up. I'm very new to programing, so any help
is appreciated...


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
How to select cells in specific Columns? nk Excel Programming 2 July 10th 07 09:20 AM
I need a specific value in auto filter to fill a combo box and than match the select value in 2 other columns. Marc Excel Worksheet Functions 0 May 22nd 06 08:41 PM
find specific data in row and select and copy entirerow Junior728 Excel Programming 3 August 8th 05 01:31 PM
Select specific columns for a given cell selection crazybass2 Excel Programming 2 April 21st 05 05:41 PM
Select specific Data from a cell [email protected] Excel Programming 11 March 30th 05 08:28 PM


All times are GMT +1. The time now is 10:16 PM.

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

About Us

"It's about Microsoft Excel"