-
WSase001
AskWoody LoungerThanks Hans. Just tried it and the results are as expected. Excellent.
-
WSase001
AskWoody LoungerJanuary 22, 2003 at 6:38 am in reply to: Urgetn help required on Style numbering (Word 97 SR2) #646931Holy smoke!!!
Nice one Andrew, I read all of the associated links and MS Q’s and I must say this is a gotcha of the highest order.
The links are recommended reading for all loungers with Word.
Problem not yet solved but a few long hours should see it off.Alan
no longer at Wits end – moved out today.
Cheshire
UK -
WSase001
AskWoody LoungerJanuary 21, 2003 at 9:42 am in reply to: Urgetn help required on Style numbering (Word 97 SR2) #646754Thanks Hans.
I’ve just tried the save_as to a couple of doc types and found probably the best results from save_as html.
The tables come back strange and I can then save as word document again but now it has no corruption.
I genuinely believe the corruption stems from an errant section break held in a table cell or some such like. (notice how the original attached file, whilst only two lines, was 300+kb!?!?)
Still, following your advice at least I now have an uncorrupted virgin text doc from which tocontinue.
Thanks again and if anyone does have a solution, please post.
alan
Cheshire
UK -
WSase001
AskWoody LoungerThanks Steve.
Yes, the cell selection that I have is one only. I too have been caught out with that.
In the intervening moments I now have a working system that has a search button which prompts with an inputbox for user input.
I have taken this route for the simple reason that I can now stipulate exactly how the search is started, i.e. one cell selected,values only etcetera.One of the most frustrating problems which I’m sure a lot of people have is that whilst the end user (125 miles away oop north as we say) insists that he is not looking in formula and “of course I only have one cell selected” I sometimes wonder whether the cell he is referring to is enclosed in his cranial cavity.
I shall be producing a list of do’s and don’t’s for the end user and the “single cell selection” will be on the list.
Thanks to all for the responses but I guess we can now chalk this upon the success chart.
Alan
Cheshire
UK -
WSase001
AskWoody LoungerThanks guys. Good pointers to try.
Strange things are afoot.
Hans’ suggestion that the find was in formula/values solved part of the problem and I did get results from ensuring Lookin was “Values”.
I believe I now have sufficient to drop a sub in there to cope with the generic find requirements of the team.
Ctrl+F works most of the time but for some strange reason ( and I cannot reliably replicate it every time) the search comes back with not found dialog.
Still, from your suggestions with the xlDialogFormulaFind I have the solution.
Thanks again.
Alan
Cheshire
UK -
WSase001
AskWoody LoungerOR, you could just use whilst iterating through a pages shapes collection:
If shape.style = “Connector” then
<>
end ifAlan
Cheshire
UK -
WSase001
AskWoody LoungerBut then when you open the .doc file, and you go to save_as – you are again faced with a greyed out box and only the template option.
This is a common problem where I work.
Always, always, always create a new document based on the template. To rename the .dot as a .doc will come back to haunt you in the future in the form of associated templates and styles and macros and……
Alan
Cheshire
UK -
WSase001
AskWoody Lounger1 – can you still print to a file instead of to the printer (use FilePrint and select Print to file)
2 – in toolsoptions check that you are picking up the “Use printer settings”
3 – when installing the printer did the administrator log back onto the pc as themself or the user
4 – check out the epson website helpdesk -
WSase001
AskWoody LoungerOctober 11, 2002 at 5:56 am in reply to: Visio import of Excel data (Excel 97 SR2 WinNT Visio 2002) #623423Thanks Steve, fresh pair of eyes for me please.
The “for x = 1 to shapes.count” didn’t make any difference but it did prompt me to get the shape name; extract the number part of the name (rightmost end characters); and then place the shape name in an array at the corresponding value position ak la:
For i = 1 to activepage.shapes.count()
Set objcurrent = activepage.shapes(i)
ShapeNumber = objCurrent.name
ShapeNumber = Right(ShapeNumber, Len(ShapeNumber) – 3) ‘the shape name is same format as Pro76, Pro77 etcetera
ShapeNumber = Cdbl(ShapeNumber)
ShapeArray(ShapeNumber) = Shape.name
NextThen I can address the shape names in order by because shape named Pro76 is at the array position 76 and Pro77 is at array position 77 etcetera.:
For i = 1 to 100
Set Objcurrent = ActivePage.Shapes(ShapeArray(i))
‘do other code to shape like start aligning and spacing from left
NextThanks again Steve.
Alan
Cheshire
UKps. anyone got any good recommendations on Visio VBA books.
-
WSase001
AskWoody LoungerUnfortunately I work in an environment where they say sympathy is a wasted emotion. Did your beard grow that fast before you worked with MS products?
Thanks anyway, it’s nice to know there’s others with similar problems. Part of the problem lies not just within the flowchart wizard (that is the means to an end of importing information) but within the next step of using VBA to reposition the shapes on the page.
If anyone can please try a logical explanation as to how and why VBA decides which shape to report on in which order I’d much appreciate it. I think that once I understand that principle it will make the customised positioning of any of the shapes a lot easier.FYI.
– the shapes are named in a list as PRO1;PRO2;PRO3;PRO4;PRO5 etcetera (no more than 5 on a line).
– when imported they lie sequentially on the page, one after the other left to right 1;2;3;4;5
– on reformatting the page using the for each shape in activepage.shapes…..next sequence, the shapes are moved up the page ordered randomly such as 5;2;3;4;1
– any suggestions as to why it selects shapes in that order?
Alan (my order for laser guided sharks in in the post)
Cheshire
UK -
WSase001
AskWoody LoungerCan’t believe it’s got the lounge speechless. It must be a first.
I even trekked through VB lounge to no avail.
But in the meantime, I resorted to good old legwork and a constant supply of rocket fuel caffeine.
I didn’t solve how the flowchart wizard brings the data into the flowchart (i.e. how it decides which is first) but I did solve the positioning by sending each objects PinY value to an array and then counting the occurences of that value in the array. If anyone is interested I’ll share the info and code but it seems very lonely out here.
I thought I had it cracked, but then……. how does VB decide on which shape comes next when I use the code?:e.g.
For each shape in activepage.shapes
msgbox shape.name
next
will present the shapes names not in the same order as in the excel worksheet, and not back to front, nor reverse, nor alphabetical, nor numerical, nor ascending, nor descending, blah blah blah…..
Please someone help, I refuse to give up on this and I’m getting a reputation as a clone of Dr Evil after refusing to help the MD to add a new folder in his outlook account.Alan…maniacal laughter sound effect…..
Cheshire
UK -
WSase001
AskWoody LoungerThanks for contributions, I believe we may now be on the road to a solution. Thinking at a tangent and substitute Flowchart for Database. By using various queries and ‘make table’ queries I can now get an output in excel format which I can use the visio flowchart wizard on. This is probably the best method for completing my ‘connectivity’ diagram.
By modifying the Excel hidden sheets I can even spec which visio template to use.
Many thanks to all posts.Alan
Cheshire
UK -
WSase001
AskWoody LoungerThanks Leif.
The site was a great help and resolved the query.
Alan
Cheshire
UK -
WSase001
AskWoody LoungerMany thanks Hans. Your solution works fine.
Alan -
WSase001
AskWoody LoungerSorry Jan, forgot to mention that the error occurs AFTER the code has run. I too had no problem in 97sr2 deleting the columns before the code has run. Unfortunately, in the file I attached, because it has to be less than 100K, I removed the other worksheets so onactivate will have to be run from the vba code and F5 or add a new sheet to jump from.
The resultant column has #NAME? as values but this is just because the original named ranges are not in the sample workbook.
TIA
Alan
Cheshire
UK
![]() |
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
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
4 hours, 11 minutes ago -
Office apps read-only for family members
by
b
6 hours, 47 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
3 hours, 39 minutes ago -
24H2??
by
CWBillow
1 hour, 45 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
15 hours, 33 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
8 hours, 46 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
3 hours, 36 minutes ago -
two pages side by side land scape
by
marc
2 days, 4 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 6 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 9 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 12 hours ago -
April 2025 updates out
by
Susan Bradley
7 hours, 17 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 5 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
19 hours, 45 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 22 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
10 hours, 20 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 1 hour ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 5 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 7 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 5 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 22 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 4 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 10 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
3 hours, 45 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 18 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 2 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 3 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 11 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 20 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
19 hours, 45 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.