Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2014, 06:38 AM
boki_s78 boki_s78 is offline Word 2013 problems with the Macros Windows 7 64bit Word 2013 problems with the Macros Office 2013
Novice
Word 2013 problems with the Macros
 
Join Date: Apr 2014
Posts: 3
boki_s78 is on a distinguished road
Default Word 2013 problems with the Macros

Hello,

I just upgraded Office 2003 to 2013. Those macros which i used in 2003 are not working anymore. The main isue is that i used the following commands:


Sub Makro1()
'
' Makro1 Makro
'
'
RecentFiles(1).Open
ActiveWindow.View.Type = wdWebView
If ActiveWindow.View.SplitSpecial = wdPaneNone Then
ActiveWindow.ActivePane.View.Type = wdPrintView
Else
ActiveWindow.View.Type = wdPrintView
End If
End Sub


This command above is used to Switch the Wiew from Pagelayout to Weblayout and back again. It worked on Word 2003. On Word 2013 it's not working. This command was necessery when using word temlpates which need to refresh links connected to database. I hope i am not the only one how has the same issue.



I'd really appreciate it very much if someone could help me out how to solve this problem.

Thanks, Boris
Reply With Quote
  #2  
Old 04-22-2014, 02:00 PM
fumei fumei is offline Word 2013 problems with the Macros Windows 7 64bit Word 2013 problems with the Macros Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

I suspect it may be RecentFiles(1).Open

I do not know for sure, but it may be that 2013 has a different name for the recent files collection. I suggest you try recording a macro doing the actions you want, and then look at the code.
Reply With Quote
  #3  
Old 04-22-2014, 11:30 PM
boki_s78 boki_s78 is offline Word 2013 problems with the Macros Windows 7 64bit Word 2013 problems with the Macros Office 2013
Novice
Word 2013 problems with the Macros
 
Join Date: Apr 2014
Posts: 3
boki_s78 is on a distinguished road
Default

What i did above was basically open new word document, run the recording, go to weblayout, switch back to pagelayout and stop the recording. All other documends were closed. Had no existing macros.
Reply With Quote
  #4  
Old 04-23-2014, 03:30 AM
boki_s78 boki_s78 is offline Word 2013 problems with the Macros Windows 7 64bit Word 2013 problems with the Macros Office 2013
Novice
Word 2013 problems with the Macros
 
Join Date: Apr 2014
Posts: 3
boki_s78 is on a distinguished road
Default

Once again, i almost found out what it is. The macro wont run if you create new document out of Word template over the another Application (not directly from Word). From Word directly, macro is working!

For example:

ApplicationX is using it's own fields. So, i basically fill out the fields, klick to print, after klicking the print button, Word generates a new filled out file from Word template over the ApplicationX. The Word form opens, but the macro is not working. I see it because the form fields are not filled out.

The whole stuff did work fine in Word 2003.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2013 problems with the Macros Problems installing office 2013 trial version on PC andy whitham Office 6 09-28-2013 02:11 AM
Word 2013 problems with the Macros Problems with Recording Macros jekronenfeld Excel 6 09-26-2013 03:07 PM
Which ODF/ .odt version is word 2010, 2013 preview & eventually 2013 full using? semiotically Word 8 11-08-2012 05:44 PM
Macros in Word. MissMazy Word 1 03-01-2012 01:55 AM
Word Macros systechguy Word VBA 2 07-12-2010 01:26 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:47 AM.


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