+ Reply to Thread
Results 1 to 3 of 3

how to transfer the data and assign the page number in the sheet?

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    62

    how to transfer the data and assign the page number in the sheet?

    Here is my sample.
    For examples, it appears 29 items when I search 1/7/2013-31/7/2013, (in "By Period")
    I want to keep item no.1~15 in "Template2"
    and for the remaining one,
    I want to allocate them to the new sheets (the same format of "Template2")
    If there are only 14 items, I want to keep all in "Template2".
    So how should I write the VBA code to do this?

    Also, I wanna assign the page number (e.g."Page number: 1 of 2") in Range("J3") for "Template2" and the new sheets. How can I do that if there are more than 1 page?
    If there are 3 pages, I wanna assign the page number (e.g. "Page number:1 of 3"),etc.

    Thanks a lot !!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    62

    Re: how to transfer the data and assign the page number in the sheet?

    Any helping hand ><?

  3. #3
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: how to transfer the data and assign the page number in the sheet?

    Hi heihei, I've recoded your Button1. Try this:

    Please Login or Register  to view this content.
    Sorry I need to make indentations to code, if not I would go totally blind looking at them

+ 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. Transfer data from main page to individual tabs
    By BadExcelHeadache in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-02-2012, 09:26 AM
  2. Macro to search ID number in sheet 1 and transfer quantity into sheet 2
    By obgle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2012, 11:27 AM
  3. Need a code to transfer a certain page when a cell contains data
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-18-2009, 12:48 PM
  4. Replies: 0
    Last Post: 11-22-2005, 10:50 AM
  5. How do I automatically transfer data to a 2nd worksheet page?
    By BarrelRacer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2005, 06:06 PM

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