ilovedurango,
Lets see if I can explain a few things and maybe it will head you in the right direction.
In the code that I sent you I set the actual worksheet equal to a variable.
which makes your code simpler and keeps you from having to select things. Selecting things ultimately slows down your code.
Many of my processes use data coming from multiple workbooks. I set each workbook and worksheet to be a varibable. I might also be jumping around from worksheet to worksheet in the same workbook. Same principle applies. Here are some examples.
This one is for worksheets within the same workbook.
This one is for worksheets in different workbooks
Using this idea you can now refer to a cell using the variable
and I do not have to select the cell to assign the new value.
Lets look at a modified version of the code I sent to you.
I hope this is clear and that it helps you understand things a little better. Mess around with this information and see where it gets you. If you have more questions, ask! I wish I knew about this forum years ago when I was learning the ins and outs of VBA.
Just out of curiosity, where in the world are you located.
Bookmarks