+ Reply to Thread
Results 1 to 5 of 5

Save new pdf when move to next data in a range

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    hk
    MS-Off Ver
    Excel 2007
    Posts
    24

    Lightbulb Save new pdf when move to next data in a range

    I created a print_range which data will be replacing in the raw data at the back. what i need is each set of data will print pdf in print range once. wrote below but it keeps refreshing the first PDF file without printing a new pdf. would you please point out my mistake and how i can make it work?
    Please Login or Register  to view this content.
    Last edited by teireii; 07-25-2017 at 09:53 PM.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Save new pdf when move to next data in a range

    Hello
    Please put your codes between code tags
    I don't know what do you mean exactly but I guess the following ..
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    hk
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Save new pdf when move to next data in a range

    thank you! sorry, i'm not very familiar with the posting quote.

    what i'm saying is inside the for loop, the export as pdf export 1 PDF and keeps on refreshing the same pdf file instead of export a new pdf based on the next row.

  4. #4
    Registered User
    Join Date
    11-25-2012
    Location
    hk
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Save new pdf when move to next data in a range

    hi Yasser, i tried with your code, it works at the first time.

    when i run it again, the fname didn't change. the i keeps changing but i need fname to be change as well.

    is it the vba variant issue? it didn't change the variant - fname.
    HTML Code: 
    Last edited by teireii; 07-25-2017 at 02:11 AM.

  5. #5
    Registered User
    Join Date
    11-25-2012
    Location
    hk
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Save new pdf when move to next data in a range

    guess it's the variant update issue in excel that cannot solved...therefore, i used another sub to change name as well as move to the folder i wanted.

    thanks a lot!

    Please Login or Register  to view this content.

+ 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. [SOLVED] VBA getting error when move range data
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 08-07-2014, 06:32 PM
  2. [SOLVED] Trying to run formula, save result, move to next cell, run again, until data complete
    By VectorW2 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-24-2014, 06:19 AM
  3. Using Send Keys to move data from Excel to Notepad and save as CSV
    By willmana in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2013, 11:29 PM
  4. [SOLVED] Remove a row range then move the data up
    By LoneWolf3574 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2013, 11:59 PM
  5. [SOLVED] Copy range every X number of columns, move data to the right
    By sans in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2013, 08:45 AM
  6. Move Cells with Data Within Variable Range
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2010, 05:03 AM
  7. [SOLVED] HELP REF. NEW DATA ONLY AS i MOVE TO ANY CELL IN THE NEW ROW/RANGE
    By in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-26-2005, 10:05 AM

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