9tanstaafl9
Well-known Member
- Joined
- Mar 23, 2008
- Messages
- 535
I need to copy data from an open workbook for which I do not know the name, into my workbook that contains the macro that finds this information. I need to know how to get the name of the workbook with the data. Is this possible? I've searched the Internet for two days now and can't find it. I'm afraid it is just such an easy question that no one has felt the need to post it. If it is simply impossible, I would like to know that too.
I could, for example, ask the user to click somewhere on the target workbook if that would help.I tried doing something similar, but only managed to get the so address where the user clicks. Not the workbook name or path.
I can't just use index numbers, because it is possible the user might have other workbooks open, and also I don't know what order they would open them in. Also I cannot edit or make changes to the unknown workbook..
Any help or ideas would be appreciated
I could, for example, ask the user to click somewhere on the target workbook if that would help.I tried doing something similar, but only managed to get the so address where the user clicks. Not the workbook name or path.
I can't just use index numbers, because it is possible the user might have other workbooks open, and also I don't know what order they would open them in. Also I cannot edit or make changes to the unknown workbook..
Any help or ideas would be appreciated