![]() |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
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.
|
#4
|
|||
|
|||
![]()
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. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
andy whitham | Office | 6 | 09-28-2013 02:11 AM |
![]() |
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 |