S
SkippyPB
Sorry if this has been answered before, but I just found this
newsgroup and searched through it for about an hour but could not find
anything that matched my needs.
Here is what I have.
I have a workbook with two worksheets named EOR 1 and EOR 2.
Whenever data is entered into EOR 1 Column B, I want it copied to the
same row column A in EOR 2.
Currently I have the following IF function in EOR 2 Column A Row 2:
=IF('EOR 1'!B2="","",'EOR 1'!B2)
Note: the first row of both worksheets contains headings so I don't
want those copied.
The IF function has been propagated in EOR 2 from Column A Row 2 to
Column A Row 65536. It works great but it also increases the size of
the workbook since there is something in all those rows in EOR 2. This
is a problem when a CSV file is created from each worksheet using the
SAVE AS feature of Excel.
In a nutsheel I'd like to replace the IF with a VBA subroutine that
does the same thing.
Thanks in advance for any help.
////
(o o)
-oOO--(_)--OOo-
** Norm's Greetings on US TV Show "Cheers" **
SAM: "What'll you have Normie?"
NORM: "Well, I'm in a gambling mood Sammy. I'll take a glass of whatever
comes out of that tap."
SAM: "Looks like beer, Norm."
NORM: "Call me Mister Lucky."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove nospam to email me.
Steve
newsgroup and searched through it for about an hour but could not find
anything that matched my needs.
Here is what I have.
I have a workbook with two worksheets named EOR 1 and EOR 2.
Whenever data is entered into EOR 1 Column B, I want it copied to the
same row column A in EOR 2.
Currently I have the following IF function in EOR 2 Column A Row 2:
=IF('EOR 1'!B2="","",'EOR 1'!B2)
Note: the first row of both worksheets contains headings so I don't
want those copied.
The IF function has been propagated in EOR 2 from Column A Row 2 to
Column A Row 65536. It works great but it also increases the size of
the workbook since there is something in all those rows in EOR 2. This
is a problem when a CSV file is created from each worksheet using the
SAVE AS feature of Excel.
In a nutsheel I'd like to replace the IF with a VBA subroutine that
does the same thing.
Thanks in advance for any help.
////
(o o)
-oOO--(_)--OOo-
** Norm's Greetings on US TV Show "Cheers" **
SAM: "What'll you have Normie?"
NORM: "Well, I'm in a gambling mood Sammy. I'll take a glass of whatever
comes out of that tap."
SAM: "Looks like beer, Norm."
NORM: "Call me Mister Lucky."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Remove nospam to email me.
Steve