VBA copy from a variable sheet
hey guys, im new to vba and i can only really record or copy vba haha has been going fine till now.
my excel has alot of sheets, lets call them userprofiles (userprof1, userprof2, userprof3 etc as sheetnames) when i have a new user i fill in a format and a new sheet automatticly creates itself and hides (this because i have over 100 users and their own sheet but its annoying to have 100 sheets "open")
so now the problem.
sometimes i need to check the user profile, but its really annoying to search for userprof73 unhide it check it and then hide it again so i tought why not make a macro for this.
the idea:
i have a sheet called checkprofiles.
in this sheet i put on A1 what profile i want to check (in this case sheet userprof73)
then i want the macro to go to the sheet that has been typed in A1, copy a certain region (lets say B2:D10) come back to the sheet checkprofiles and paste it on B2:D10.
the only varible is the sheet, ive tried it with indirect but cant get it to work, might be really easy but then again im a noob.
please help me out, would mean alot ive been struggeling with this for like 8 hours now..
thanks in advance :)