ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Macro Question? (https://www.excelbanter.com/excel-programming/366826-excel-macro-question.html)

Mike

Excel Macro Question?
 
Hi everyone,

I am trying to create two macros, macro1 copies from cell b3 and pastes
it in F6, and macro2 copies from cell b4 and pastes it in F7. I also
create two buttons; one for each macro.

Then I assign button1 for macro1 and button2 for macro2. When I try
each macro, I realize that each is copying from cell b4! In other
words, both macros are copying from b4 and pasting same thing in cells
F6 and F7!

Why, and how can I fix that?

Thanks,
Mike


Stefi

Excel Macro Question?
 
Please, show the code!
Regards,
Stefi


€žMike€ť ezt Ă*rta:

Hi everyone,

I am trying to create two macros, macro1 copies from cell b3 and pastes
it in F6, and macro2 copies from cell b4 and pastes it in F7. I also
create two buttons; one for each macro.

Then I assign button1 for macro1 and button2 for macro2. When I try
each macro, I realize that each is copying from cell b4! In other
words, both macros are copying from b4 and pasting same thing in cells
F6 and F7!

Why, and how can I fix that?

Thanks,
Mike



Mike

Excel Macro Question?
 
I found the problem.......thanks Stefi


Stefi wrote:
Please, show the code!
Regards,
Stefi


,,Mike" ezt írta:

Hi everyone,

I am trying to create two macros, macro1 copies from cell b3 and pastes
it in F6, and macro2 copies from cell b4 and pastes it in F7. I also
create two buttons; one for each macro.

Then I assign button1 for macro1 and button2 for macro2. When I try
each macro, I realize that each is copying from cell b4! In other
words, both macros are copying from b4 and pasting same thing in cells
F6 and F7!

Why, and how can I fix that?

Thanks,
Mike





All times are GMT +1. The time now is 05:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com