C
Chuck W
Hi,
I am working with a text file that I imported into Excel.
It is a transactional report of sales by customer. The
data will have the customer number and name spread out
over three cells. What I want to do is to create a macro
that will contatenate all three cell and then perform a
paste special and paste them into another cell in another
column. Since the number of transactions by customer can
vary the customer name and number can appear anywhere on
the page.
I created a macro to do this using the first customer
which appears in cell B5 through D5. The next customer
appears in B26 through D26 and the third in B91 through
D91. When I tried running the macro in row 26 and row 91
it kept reverting back to row 5. Basically I want the
macro to run in whatever row I tell it to rather than row
5 which is where I set it up. Can anyone help?
Thanks,
Chuck
I am working with a text file that I imported into Excel.
It is a transactional report of sales by customer. The
data will have the customer number and name spread out
over three cells. What I want to do is to create a macro
that will contatenate all three cell and then perform a
paste special and paste them into another cell in another
column. Since the number of transactions by customer can
vary the customer name and number can appear anywhere on
the page.
I created a macro to do this using the first customer
which appears in cell B5 through D5. The next customer
appears in B26 through D26 and the third in B91 through
D91. When I tried running the macro in row 26 and row 91
it kept reverting back to row 5. Basically I want the
macro to run in whatever row I tell it to rather than row
5 which is where I set it up. Can anyone help?
Thanks,
Chuck