i am trying to call values using a for loop and is giving an error please help me.![]()
Please Login or Register to view this content.
thank in advance.
i am trying to call values using a for loop and is giving an error please help me.![]()
Please Login or Register to view this content.
thank in advance.
Last edited by uppidon111; 09-02-2019 at 04:32 PM.
Hi and welcome to the forum
Change
to![]()
Please Login or Register to view this content.
you have dimmed set_cell_range as a range therefore Excel expects to see a range address not something else like a formula.![]()
Please Login or Register to view this content.
similar lines of code will also need adjusting.
And purely as feedback I find your variable names quite confusing. The very least I expect of variable names is that they are intuitive. I took me a little while to understand stuff like
Dim set_cell_range As Range.
Think about adopting a naming convention where the initial character indicates the type of variable. I tend to use stuff like
Dim rNames as Range, stManager as String, lRow as Long
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Thank You for reply.
this is the original code which is working fine and i have only added an for loop to get value from a 2D array instead of columns. and i tried the code as suggested which giving is me error for Goal Seek
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks