Hi,
I'm trying to simplify some code by running a loop rather than setting the code to run on each of a number of worksheets within a file. The code works for each worksheet individually and is as follows:
![]()
Please Login or Register to view this content.
This continues with Sheets("J2").Select, and so on for up to 20 different sheets. This code takes data from the first and second sheets in the file and enters it into specified cells; currently, this method of applying the code to each worksheet works, and gives the correct outputs. I've tried to condense the code by using a loop, shown below:
![]()
Please Login or Register to view this content.
But this gives me blank output. I am fairly new to this, although I did write the original code myself.
Can anyone give me any pointers please?
Bookmarks