Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-13-2015, 10:28 AM
Jennifer Murphy's Avatar
Jennifer Murphy Jennifer Murphy is offline Tab character causes style change to Heading 4 after macro Windows XP Tab character causes style change to Heading 4 after macro Office 2007
Competent Performer
Tab character causes style change to Heading 4 after macro
 
Join Date: Aug 2011
Location: Silicon Valley
Posts: 234
Jennifer Murphy is on a distinguished road
Default

Hello,

I never got any replies on this question. It's still happening. Can anyone suggest a fix?

Thanks

PS: I have some new data.

If I simply rerun the macro from the line where the tab key is misbehaving, the problem is fixed. I set a breakpoint in the macro and stepped through what it does. If it is not called from a heading line, it just assigns two variables and exits.

Code:
Dim DocLayout   'The document layout (view)
Dim ParOutline  'The paragraph outline level (1-9 + 10 (=Bodytext))

DocLayout = ActiveWindow.View
ParOutline = Selection.Paragraphs(1).OutlineLevel
Why would that change anything?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab character causes style change to Heading 4 after macro Macro to change style name with " in it gundas Word VBA 3 04-02-2013 06:20 AM
Change single character in PPT to another font macro rtwwpad PowerPoint 1 01-19-2013 05:08 PM
Tab character causes style change to Heading 4 after macro Macro to replace one specific heading style with another ubns Word VBA 44 09-04-2012 08:17 PM
Change the leading of a character style??? Char t Word 1 11-05-2011 01:18 PM
Character style stripped while applying paragraph style sams_gates Word 0 08-29-2009 02:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft