+ Reply to Thread
Results 1 to 2 of 2

Selection.MoveUp Count Variability

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Selection.MoveUp Count Variability

    Hello!

    I'm trying to see if there is a way to manipulate the Selection.MoveUp function to get it do to what I want in VBA for Word...

    So the code starts out by finding a phrase and then figuring out what page number it is on. If the page number / 2 <> 0 then another find is executed to find the section break on that page. Ideally I'd like to find this section break and then MoveUp until it finds the pagebreak on the previous page and deletes everything between the section break and the page break, including the page break but not the section break. I have no idea how many lines are between these two as each user is different when enterting the phrase....the phrase is one line, but unfortunately there may or may not be white space (more lines) depending on the user.

    Any help would be appreciated! Thank you

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Selection.MoveUp Count Variability

    Please see my reply in your other thread.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 06-18-2010, 10:05 PM
  2. Replies: 1
    Last Post: 06-18-2010, 07:56 PM
  3. Needed: search function that allows for some variability
    By SIFT-MS88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2010, 07:53 PM
  4. How do I measure variability / volatility of a set of numbers?
    By Phedwards in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2008, 06:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1