JamesPower4
New member
- Local time
- Today, 06:36
- Joined
- Apr 21, 2020
- Messages
- 4
Hello: I have been having great difficulty generating an Excel range subaddress in Access that includes the worksheet name and range's cell address(es). I would like to use this string as a subaddress in the hyperlink. The worksheets have spaces in their names, so the subaddress should look something similar to 'Sheet 1'!R1C1:R12C3. I would like to do this so that I can embed a hyperlink to the range (subaddress) in an Access field (typed as hyperlink). Creating a hyperlink to just the file works with no problems; it's including the subaddress where I'm having difficulty. Examples online show multiple ways to accomplishing this, from simply creating the full hyperlink string (concatenating the four hyperlink parts, separating them with "#") to using the hyperlink object and populating its properties.
My problem is that no matter what approach I try, Access invariably replaces the exclamantion point ("!") in the generated subaddress with a dollar sign ("$"), and then I get an "invalid address" error when I try to use the hyperlink. Does anyone have any idea how I can generate a range address, with a sheet name containing spaces, in Access?
Thanks in advance.
Jim Power
My problem is that no matter what approach I try, Access invariably replaces the exclamantion point ("!") in the generated subaddress with a dollar sign ("$"), and then I get an "invalid address" error when I try to use the hyperlink. Does anyone have any idea how I can generate a range address, with a sheet name containing spaces, in Access?
Thanks in advance.
Jim Power