-
WSAntediluvian
AskWoody LoungerFebruary 6, 2017 at 11:15 pm in reply to: List of Shapes in a Sheet (Excel 2003, Windows 10) #1590568Maudibe,
Thank you for your suggestion but it would be hard to implement in practice. I have a library of macro language facilities thousands of lines long written over many years that support very many and diverse applications. Where necessary kind people have enhanced that with Visual Basic functions. That would be very hard to change.
I’ve attached such an enhancement and have tested this to show it is possible to read and write to a macro sheet within Visual Basic. Perhaps this could be used to convert the Destination to be a range and thus write to that range. What I could do is to use this new facility in normal sheets that contain shapes (and that write to macro sheets) and use my current facility with macro sheets that contain shapes. I can control the macro sheet environment. The reason I have this problem is that a user sends me information that contains multiple images with names (of images) greater than 32 characters. These images are often megabytes in size! So he and I have a problem that I’m attempting to resolve!
Regards
Antediluvian
-
WSAntediluvian
AskWoody LoungerFebruary 5, 2017 at 10:13 pm in reply to: List of Shapes in a Sheet (Excel 2003, Windows 10) #1590502Dear Maudibe,
Thank you for your kind words, and generous encouragement.
I’ve found what appears to be a problem. XShapeList works fine for normal sheets but not for macro sheets, either as the Source or the Destination. I’ve attached a copy of my test system, the original XShapeList and the test procedures, all of which are also contained in the test system. I found even doing this a bit of a struggle! I know that Visual Basic can write to macro sheets. Perhaps converting Destination to a reference might ease the problem and enable a solution. I would very much appreciate your help on this one. It would be rather tricky for me not to be able to write to macro sheets, i.e. I would very much like to be able to have Destination on macro sheets. At a pinch I could live with shapes being unable to be listed when those Shapes are on macro sheets as I have more control over the names of shapes in that environment, and could list them using other techniques.
Kind regards
Antediluvian
-
WSAntediluvian
AskWoody LoungerFebruary 4, 2017 at 6:51 pm in reply to: List of Shapes in a Sheet (Excel 2003, Windows 10) #1590458My thanks to both of you. I’ve converted your work into a function, the code for which is attached:
XShapeList(Sheet,Target) eg XShapeList(“[myBook.xls]Sheet5″,”[Book7]Sheet1!C74”)
XShapeList returns either the number of shapes in the list or FALSE if any error occurs. It also generates the list of shapes in Sheet and puts that vertical list at the cell starting at Target. Note that the number of shapes is NOT included in the list itself. I need the generality as I don’t know in advance where Sheet or Target will be.
Would the code be more elegant if Target was a reference rather than text?
Again, thank you.
Regards
-
WSAntediluvian
AskWoody LoungerFebruary 4, 2017 at 12:53 am in reply to: List of Shapes in a Sheet (Excel 2003, Windows 10) #1590434Dear Maudibe,
That looks great to me, and thank you very much. It worked for me. I obviously exaggerated my VB skills, as most of your code I could not have done myself. That hopefully will give me the opportunity to turn it into a function, and to ensure it reports failures as FALSE.
Regards
-
WSAntediluvian
AskWoody LoungerJanuary 24, 2017 at 1:22 am in reply to: List of Shapes in a Sheet (Excel 2003, Windows 10) #1589610Dear RetiredGeek,
Thank you for your input. Unfortunately it does not work for me at this stage. I seek your help as my VB skills are not up to this. I’ve attached my test system. Would it be possible to have the worksheet identified as [book]sheet ? If not I can adjust it externally. I also wish to remove the open statement as the workbook will always be open, and I do not wish to close the file. Therefore the path is not needed. Could the Destination be a cell anywhere in an open workbook please. (If it would be better for you, having the Destination as a single cell Range would be fine.)
I feel I probably have the skills to convert your work into a function and to ensure that it can only fail via a FALSE return.
Regards
-
WSAntediluvian
AskWoody LoungerExcellent, Thank you.
-
WSAntediluvian
AskWoody LoungerMaudibe,
Thank you very much for your excellent solution. It will smooth my use of the computer a lot. I’ve chosen the longer solution as it does not require changes to the Excel environment when used on different computers.
I’ve made some variations as in the attachment. I’ve eliminated excess separators when cells are empty and the function replies TRUE on success and FALSE on failure (though FALSE does not work when I deliberately feed in invalid arguments).
-
WSAntediluvian
AskWoody LoungerThanks to both of you for your help. I think the basis of the code is there, especially the shorter version. However I was hoping to get a function that could be initiated from my code (I use the macro language, but that’s similar to Visual Basic for this context), not as a keyboard initiated macro. I’m also keen to put the result onto the clipboard as that will offer me a lot of advantages as I move from application to application and would value the permanancy of the clipboard as calculated in Excel. I’ve found a good references on the internet as to how to put the text onto the clipboard. It looks complex to me and I hope you’re able to do it. The major reference is:
http://excel-macro.tutorialhorizon.com/vba-excel-putting-text-in-the-windows-clipboard/
and it refers to: http://excel-macro.tutorialhorizon.com/vba-excel-reference-libraries-in-excel-workbook/
I would be extremely grateful if you could integrate the various aspects. A further benefit would be for the function to reply with TRUE or FALSE, depending on errors, though I know how to do that myself.
I’ve put two attachments in. The Word document is essentially the major reference above and the Excel woksheet shows a Help panel I’ll construct in code that I provide myself.
-
WSAntediluvian
AskWoody LoungerBarry,
Thank you. Is there a generic way to express an “array enter” formula as a formula? The reason I need this is that I do a lot of coding using the old macro language and thus need the formulae, not the array enter equivalent.
Regards
-
WSAntediluvian
AskWoody LoungerAndrew,
Thank you. I’ll put this on my to do list.
Geoffrey
-
WSAntediluvian
AskWoody LoungerAndrew,
Thank you for your references. I’ve spent some time looking at them and I think they’re beyond my skill level to make the necessary extrapolations. It’s great news though that Word can be controlled from Excel. I see that you live in Melbourne, as do I. Perhaps we don’t live far apart!
Regards
Geoffrey
-
WSAntediluvian
AskWoody LoungerFebruary 1, 2012 at 7:07 pm in reply to: URL / Anchor / Hyperlink information in an Excel (2003) cell #1317225Steve,
Many thanks for sticking with the problem. The code looks so elegant, it works, it’s really useful for me, and I’ve learnt a lot.
Geoffrey
-
WSAntediluvian
AskWoody LoungerFebruary 1, 2012 at 1:14 am in reply to: URL / Anchor / Hyperlink information in an Excel (2003) cell #1317108Steve,
I should have explained that my VBA skills are very limited, perhaps the reason why I appear not to be as precise as you’d like. I’ve attempted to write a VBA function and I’m afraid it doesn’t work. I’ve copied it below. I need a function (XCellHyperlinkGet) that receives an input argument of the cell address I want as text. XCellHyperlinkGet would then return the hyperlink as text. XCellHyperlinkGet could be called from a normal spreadsheet or from a macro sheet. If XCellHyperlinkGet fails, FALSE as a Boolean would be returned.
I couldn’t find Hyperlinks in VBA Help.
I hope this gives you a better view.
Regards
Geoffrey
Function XCellHyperlinkGet(myCell As String)
‘ Returns Hyperlink contained in Cell
‘ I want myCell to be the cell with the URL
‘ to be returned
‘ use of ActiveCell below is wrong I think
‘ If the macros fails I would like FALSE returned
‘ FALSE as in ExcelOn Error GoTo MyFail
sLink = ActiveCell.Hyperlinks(1).Address
XCellHyperlinkGet = sLink
Exit Function
MyFail:
XCellHyperlinkGet = “False”End Function
-
WSAntediluvian
AskWoody LoungerJanuary 31, 2012 at 7:13 pm in reply to: URL / Anchor / Hyperlink information in an Excel (2003) cell #1317082Steve,Thank you for your help so far. I’ve attached a sample spreadsheet of what I hope to achieve. In essence I need to extract by program the URLs in a large number of cells. The URLs are already stored in the cells. Because there are so many URLs (one to a cell as a hyperlink) I need to be able to open those I select and thus need a loop in the program. The only part I cannot do is the extract of the URL address in the hyperlink. I believe this will need a brief VBA function.
The attached spreadsheet is only shown to give a context of the problem I wish to solve. It has two sheets: one is the macro sheet, and the other is the data sheetregards
Geoffrey
-
WSAntediluvian
AskWoody LoungerRory, Excellent. Worked like a charm. Thank you. Geoffrey
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
*Some settings are managed by your organization
by
rlowe44
2 hours, 43 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
4 hours, 57 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
5 hours, 22 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
14 hours, 22 minutes ago -
AI slop
by
Susan Bradley
13 hours, 33 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
15 hours, 39 minutes ago -
Two blank icons
by
CR2
1 hour, 12 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day ago -
End of 10
by
Alex5723
1 day, 3 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 hour, 8 minutes ago -
test post
by
gtd12345
1 day, 9 hours ago -
Privacy and the Real ID
by
Susan Bradley
23 hours, 22 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
15 hours, 28 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 13 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 hour, 18 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
4 hours, 51 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 5 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 16 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 7 hours ago -
Are manuals extinct?
by
Susan Bradley
54 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 16 hours ago -
Network Issue
by
Casey H
2 days, 3 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 4 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 4 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 6 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 7 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 8 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 8 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 16 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 24 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.