Hello I'd like to copy from one worksheet to multiple but I don't know if it is possible to use array in worksheets().
Please Login or Register to view this content.
Hello I'd like to copy from one worksheet to multiple but I don't know if it is possible to use array in worksheets().
Please Login or Register to view this content.
As you have defined your array and its elements in the macro it's "read in" when you run your macro.
As the array contains 18 elements a code for looping through sheets in a workbook and pasting the array values to each sheet could look like this:
AlfPlease Login or Register to view this content.
Try this:
Please Login or Register to view this content.
well I think this what you want
And in general to copy set of rangesPlease Login or Register to view this content.
Please Login or Register to view this content.
As all others are the norm...Here's Old school
Please Login or Register to view this content.
Good Luck
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the star to left of post [Add Reputation]
Also....add a comment if you like!!!!
And remember...Mark Thread as Solved.
Excel Forum Rocks!!!
Another way to consider (assuming cell A1 on sheet "PoMil" contains the value to copy across)...
Please Login or Register to view this content.
@ Rick
Actually forgot about that option...
@ mohadin
Does work...Rememberassuming cell A1 on sheet "PoMil" contains the value to copy across
FillAcrossSheets method of sheets class failed
The Error in #9 Sir
Error #9 is subscript out of range. The only thing I can think of for the code I posted is that one or more of the sheet names listed in the Array function call in my code does not match any sheet names in your workbook. Did you remember to change the OP's worksheet names (which is what I listed in the Array function call) to your own worksheet names?
This what I'm doing
You must include the sheet you activated as it is from that sheet that the copies will be made. So, just change this line of code in your macro...
to this...Please Login or Register to view this content.
and it should then work fine for you.Please Login or Register to view this content.
Opps
So it's my fault
Thank you so much in Deed
In the end i used.
Thank you all for help.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks