Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2011, 10:31 PM
b0x4it b0x4it is offline Moving Tables Windows 7 32bit Moving Tables Office 2010 32bit
Advanced Beginner
Moving Tables
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default Moving Tables

There are some journals that has the requirement for the article that is going to be sent to them to have all the figures and tables at the end of the paper after bibliography. In laTeX this can be done using



Code:
\usepackage{endfloat}
Is it something possible in Word using VBA to move all of the tables that include figure to the end of the document?
Reply With Quote
  #2  
Old 05-19-2011, 10:42 PM
macropod's Avatar
macropod macropod is offline Moving Tables Windows 7 32bit Moving Tables Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi b0x4it,

Word doesn't have anything of that kind built in. However, if you work with a split window, you can cut things from the one window to paste into the other. With one window open at the end of the document, that will facilitate the moves.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-19-2011, 10:46 PM
b0x4it b0x4it is offline Moving Tables Windows 7 32bit Moving Tables Office 2010 32bit
Advanced Beginner
Moving Tables
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

You really are clever! thank you.
But I was thinking that may be it can be done in VBA by finding a table that has a picture in one its cells and then doing cut/paste of the table at the end of the doc. So is there a code to be able to copy/paste something like a table?
Reply With Quote
  #4  
Old 05-19-2011, 11:46 PM
macropod's Avatar
macropod macropod is offline Moving Tables Windows 7 32bit Moving Tables Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi b0x4it,

Yes, it can be done with vba. Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long, Rng As Range
With ActiveDocument
  Set Rng = .Paragraphs.Last.Range
    With Rng
      If Len(.Text) > 1 Then
        .InsertAfter vbCr
        .Collapse wdCollapseEnd
      End If
    End With
  For i = .Tables.Count To 1 Step -1
    With .Tables(i).Range
      If .InlineShapes.Count > 0 Then
        .Cut
        With Rng
          .Paste
          .Paragraphs.First.Previous.Range.Characters.Last.InsertBefore vbCr
          .Start = .Paragraphs.First.Previous.Range.Start
          .Collapse wdCollapseStart
        End With
      End If
    End With
  Next
End With
Application.ScreenUpdating = True
End Sub
Please keep in mind that this isn't a free coding forum, though. So far, I've written quite a few macros for you - and you've asked for other macros as well ...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 05-20-2011, 12:01 AM
b0x4it b0x4it is offline Moving Tables Windows 7 32bit Moving Tables Office 2010 32bit
Advanced Beginner
Moving Tables
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

Hi Paul,
Thank you so much. It works. I really appreciate it.
As far as I know this is a VBA forum that is all about coding and macros. So I do not get what exactly you mean by mentioning "free coding forum". Do I need to be charged for asking questions in a public forum?

I expect you as a member of this forum to be honest and not talk to other members like this if you are replying to their threads as you kindly did for me. You can simply not reply to my questions. BTW, what is the main reason of having such forums, isn't it all about learning from each other??!!

For your information, these are some of other related forums that all are about people asking for code and others are helping them with NO charge!!!:

http://stackoverflow.com/questions/3...soft-word-2007
http://stackoverflow.com/questions/1...-word-document
http://forums.whirlpool.net.au/archive/1036557
http://www.excelforum.com/excel-prog...using-vba.html
http://www.excelforum.com/excel-prog...-thru-vba.html
http://social.msdn.microsoft.com/For...-d92c7ea50144/
http://social.msdn.microsoft.com/For...e-b8dfbe6f0c0e
Reply With Quote
  #6  
Old 05-20-2011, 12:22 AM
macropod's Avatar
macropod macropod is offline Moving Tables Windows 7 32bit Moving Tables Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi b0x4it,

Many forums expect the people being helped to show they're making some effort to develop code for themselves - not simply to have other do it for them - especially if it's being used in a business context. It's good to see you're aware of these other forums - and the code they've provided. You should try looking at the code available on those forums and others and see if anything's already been developed that will suit your needs:
(a) as is; or
(b) with minor mods.
In the latter case, you will be the one to benefit if you study the code and similar code to see how it might be modified to suit your needs. Over time, you'll become proficient at developing your own code. If you get stuck, help is only a few keystrokes away.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 05-20-2011, 12:28 AM
b0x4it b0x4it is offline Moving Tables Windows 7 32bit Moving Tables Office 2010 32bit
Advanced Beginner
Moving Tables
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

I just started using word for a week or so. most of my questions are about to find out if something is possible at all or not. I was deciding to continue using Word instead of LaTeX, and that's why I compared some LaTeX features with Word and whether they are possible or not.

never mind ...
Reply With Quote
  #8  
Old 05-20-2011, 12:33 AM
macropod's Avatar
macropod macropod is offline Moving Tables Windows 7 32bit Moving Tables Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi b0x4it,

As you'll no doubt find, Word is extremely capable, but LaTeX it isn't - so getting a handle on everything it does out of the box and with customization will take some time. With all this macro-based stuff, it seems you want to dive right in at the deep end ...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 05-20-2011, 12:40 AM
b0x4it b0x4it is offline Moving Tables Windows 7 32bit Moving Tables Office 2010 32bit
Advanced Beginner
Moving Tables
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

I had to somehow make sure that it has all the capability required for what I need to prepare as report and paper. When I asked you whether something is possible or not, you could simply just give me a YES or NO as well as some hints instead of giving me the whole code and then talking to me like that.
Reply With Quote
  #10  
Old 05-20-2011, 01:00 AM
macropod's Avatar
macropod macropod is offline Moving Tables Windows 7 32bit Moving Tables Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi b0x4it,
Quote:
Originally Posted by b0x4it View Post
I had to somehow make sure that it has all the capability required for what I need to prepare as report and paper. When I asked you whether something is possible or not, you could simply just give me a YES or NO
In that case, it would be nice if you said up front that all you want is a Yes/No answer. The way your questions have been framed have implied you're looking for an actual solution - especially when asking questions with a 'how to' implication:
Quote:
So is there a code to be able to copy/paste something like a table?
Quote:
I am wondering if I can have a code that make me able to just put the cursor in the line that the caption is located that the code finds the closest field to the cursor position, then select it and then run the bookmark command that shows the window waiting for entering the bookmark name? it looks like I am asking a lot for a macro, does't it?
Quote:
How can I define the relative path to current user's desktop folder and to the document folder itself?
Quote:
I am using the following code ... Is there any way to do that either by using VBA or through Endnote's setting?
Quote:
Is there any way to ask word to shade the equations just like shading fields by setting the Field shading option to Always? If no, what about using VBA?
Quote:
Is there any code to convert all equations in the document to "Normal Text"?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]

Last edited by macropod; 05-20-2011 at 02:03 AM.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Tables Moving comments sollc Excel 3 04-13-2011 04:43 AM
moving from one computer to the next Billmce Office 0 04-26-2010 03:41 PM
Moving Tables Moving formula range multiple cells when moving sum over one cell FraserKitchell Excel 4 02-26-2010 10:38 AM
Moving from Vista to Windows 7 zyzzyva57 Office 0 12-18-2009 04:41 PM
Moving Items windsurfer Outlook 0 12-06-2005 06:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:26 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