Hello All,
Can somebody look at my code and advise what is wrong with my code?
Regards,
Taha
Hello All,
Can somebody look at my code and advise what is wrong with my code?
Regards,
Taha
Hi Taha,
The syntax for the case statement should be like this:
Regards,Select Case Environ("Username") Case Is = "Sunj" Set GetAllowedSheet = Sheets("Sheet7") Case Is = "AbisoyeM" Set GetAllowedSheet = Sheets("Sheet9") End Select
Robert
____________________________________________
Please ensure you mark your thread as Solved once it is. Click here to see how
If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.
Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.
(Note: this requirement is not optional. No help to be offered until the link is provided.)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks