Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default In excel, I am trying to copy a column to another sheet automatica

I want to use a function that will look at a row and if the data is yes then
the corresponding column will be copied to another sheet.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default In excel, I am trying to copy a column to another sheet automatica

Dim rng as Range, cell as Range
set rng = Intersect(activesheet.usedRange, activeCell.EntireRow)
for each cell in rng.Cells
if lcase(cell.Value) = "yes" then
cell.EntireColumn.Copy Destination:= _
worksheets("Sheet2").Columns(cell.column)
end if
Next

--
Regards,
Tom Ogilvy

"flyflinger" wrote in message
...
I want to use a function that will look at a row and if the data is yes

then
the corresponding column will be copied to another sheet.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default In excel, I am trying to copy a column to another sheet automa

Thanks,

I am a complete newbie to doing this stuff. Can you tell me which sections
need values to be entered by me?

Thanks in advance,

David

"Tom Ogilvy" wrote:

Dim rng as Range, cell as Range
set rng = Intersect(activesheet.usedRange, activeCell.EntireRow)
for each cell in rng.Cells
if lcase(cell.Value) = "yes" then
cell.EntireColumn.Copy Destination:= _
worksheets("Sheet2").Columns(cell.column)
end if
Next

--
Regards,
Tom Ogilvy

"flyflinger" wrote in message
...
I want to use a function that will look at a row and if the data is yes

then
the corresponding column will be copied to another sheet.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default In excel, I am trying to copy a column to another sheet automa

as written, it acts on the activecell. There is no provision for entering
data. What data did you want to enter. When you said it had a value of
yes, did you mean it matched some value you furnished?

--
Regards,
Tom Ogilvy

"Flyflinger" wrote in message
...
Thanks,

I am a complete newbie to doing this stuff. Can you tell me which

sections
need values to be entered by me?

Thanks in advance,

David

"Tom Ogilvy" wrote:

Dim rng as Range, cell as Range
set rng = Intersect(activesheet.usedRange, activeCell.EntireRow)
for each cell in rng.Cells
if lcase(cell.Value) = "yes" then
cell.EntireColumn.Copy Destination:= _
worksheets("Sheet2").Columns(cell.column)
end if
Next

--
Regards,
Tom Ogilvy

"flyflinger" wrote in message
...
I want to use a function that will look at a row and if the data is

yes
then
the corresponding column will be copied to another sheet.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default In excel, I am trying to copy a column to another sheet automa

Tom,

I have an excel sheet with columns of information that is data about
different plan options for my clients. I want to be able to put a "yes" or
checkmark or something like this on each column so when it is selected it
copies that information to a separate sheet in the same format. It is as if
I highlight the column and copy and paste the information. there are about
75 columns so it is easier for us in our worksite to scroll across the top of
the columns and check the ones we need, rather than cut and pasting each one.
Perhaps a way of keying each column with a code like Access uses could make
it easier. In that scenario, I would type the key code into a cell and the
desired column would appear. Any suggestions are highly appreciated.

Thanks in Advance,

David

"Tom Ogilvy" wrote:

as written, it acts on the activecell. There is no provision for entering
data. What data did you want to enter. When you said it had a value of
yes, did you mean it matched some value you furnished?

--
Regards,
Tom Ogilvy

"Flyflinger" wrote in message
...
Thanks,

I am a complete newbie to doing this stuff. Can you tell me which

sections
need values to be entered by me?

Thanks in advance,

David

"Tom Ogilvy" wrote:

Dim rng as Range, cell as Range
set rng = Intersect(activesheet.usedRange, activeCell.EntireRow)
for each cell in rng.Cells
if lcase(cell.Value) = "yes" then
cell.EntireColumn.Copy Destination:= _
worksheets("Sheet2").Columns(cell.column)
end if
Next

--
Regards,
Tom Ogilvy

"flyflinger" wrote in message
...
I want to use a function that will look at a row and if the data is

yes
then
the corresponding column will be copied to another sheet.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default In excel, I am trying to copy a column to another sheet automa

That is what it does. Since you specified yes, it looks for yes. If you
want something else, then change the yes to the something else.

It copies the entire column and puts it in the same column location on the
sheet2. You didn't specify where you wanted it.

--
Regards,
Tom Ogilvy

"Flyflinger" wrote in message
...
Tom,

I have an excel sheet with columns of information that is data about
different plan options for my clients. I want to be able to put a "yes"

or
checkmark or something like this on each column so when it is selected it
copies that information to a separate sheet in the same format. It is as

if
I highlight the column and copy and paste the information. there are

about
75 columns so it is easier for us in our worksite to scroll across the top

of
the columns and check the ones we need, rather than cut and pasting each

one.
Perhaps a way of keying each column with a code like Access uses could

make
it easier. In that scenario, I would type the key code into a cell and

the
desired column would appear. Any suggestions are highly appreciated.

Thanks in Advance,

David

"Tom Ogilvy" wrote:

as written, it acts on the activecell. There is no provision for

entering
data. What data did you want to enter. When you said it had a value of
yes, did you mean it matched some value you furnished?

--
Regards,
Tom Ogilvy

"Flyflinger" wrote in message
...
Thanks,

I am a complete newbie to doing this stuff. Can you tell me which

sections
need values to be entered by me?

Thanks in advance,

David

"Tom Ogilvy" wrote:

Dim rng as Range, cell as Range
set rng = Intersect(activesheet.usedRange, activeCell.EntireRow)
for each cell in rng.Cells
if lcase(cell.Value) = "yes" then
cell.EntireColumn.Copy Destination:= _
worksheets("Sheet2").Columns(cell.column)
end if
Next

--
Regards,
Tom Ogilvy

"flyflinger" wrote in message
...
I want to use a function that will look at a row and if the data

is
yes
then
the corresponding column will be copied to another sheet.








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
I want to copy rows with values 0 to another worksheet automatica Skeletor Excel Worksheet Functions 4 September 24th 08 11:47 PM
numeração automatica no excel 2003 EVLUIZ Excel Discussion (Misc queries) 0 July 22nd 07 05:18 AM
How to search column, copy row, and copy to another sheet in same Rockhound Excel Discussion (Misc queries) 1 December 9th 06 04:16 PM
when i insert word art in excel sheet excel file closes automatica marwin Excel Discussion (Misc queries) 1 April 10th 06 03:29 PM
How do I copy macro into new workbook that was created automatica. Darshan Excel Programming 3 January 11th 05 01:24 AM


All times are GMT +1. The time now is 10:19 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"