whats wrong with this code at msgbox line, it show error .The code is placed in command_click button
Please Login or Register to view this content.
whats wrong with this code at msgbox line, it show error .The code is placed in command_click button
Please Login or Register to view this content.
Hi, mubashar,
maybe just use
You canīt assign the values of a range to a string like you tried to do, you would need a loop for that.Please Login or Register to view this content.
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
mubashar, you are trying to set a variable, 'maritvalue', equal to the value of a range. This would essentially make its existence redundant, even if you could do it. Secondly, MsgBox displays string variables, not objects. If you only want to see the value of the last cell in the range, you could incorporate something like this in your code.
GregPlease Login or Register to view this content.
Just a guy trying to make work stuff easier.
thanks to both of you, with your help it has been solved
To add onto what Hahobe said the loop would be something like this:
Please Login or Register to view this content.
Hi, mubashar,
do you mind to mark this thread as Solved via Thread Tools?
Ciao,
Holger
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks