+ Reply to Thread
Results 1 to 3 of 3

Need a VBA Code to refresh data and save the active sheet as a new workbook.

  1. #1
    Forum Contributor
    Join Date
    01-03-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2016,Excel 2013
    Posts
    186

    Need a VBA Code to refresh data and save the active sheet as a new workbook.

    Hi All

    I have set up an Ageing Statement in sheet1 which contains Invoice Listing for a customer. This data is pulled from Sheet2 and is extracted through Index Function. Based on the number of value in a specific Cell in Sheet 2, the data gets refreshed in Sheet1.

    I need a VBA Code to do the following,

    1) VBA code to generate the statement for each customers based on cell input in Sheet 2
    2) Upon refreshing each statement, the active sheet needs to be saved a new file with pre-allocated name picking up from a specific range in the statement sheet.

    Any help is much appreciated.

    Thanks

    Mysore

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,967

    Re: Need a VBA Code to refresh data and save the active sheet as a new workbook.

    This is a pretty big request in one chunk. I'm sure you'll get better response if you break down your question into several parts, so that they can be tackled one after the other.

    Also, we're happy to help you with your effort, but nobody here will be keen on developing a solution from scratch. This forum is about helping people learn how to use Excel, not a free development service.

    Have you started any work on this project yet?
    How far did you get?
    Where are you stuck?

    We can help you develop your own code, but if you want someone to code this for you all the way, you should try and find a commercial developer.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    01-03-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2016,Excel 2013
    Posts
    186

    Re: Need a VBA Code to refresh data and save the active sheet as a new workbook.

    Hi There,

    I have currently build the below mentioned macros.
    Baiscally the first macro would assign a counter to a specific cell(E4)and this macro needs to loop based on cell(E2)value ie. if E2 = 37, then this macro should run 37 times by assigning value from 1 until 37 to cell E4.

    Upon assigning a a counter to Cell E4 in "Control" Sheet, the second macro would
    unhide row in "Statment" Sheet and the data is refreshed.

    Finally the activesheet ie "Statement" needs to be saved in excel 2003 Version.

    The above 3 macros should be consolidated and run multiple times depending upon the
    cell value in E2 in "Control Sheet".

    Just need a little help to tweak the code and make it work.

    Thanks
    Krishna


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Mysore; 09-23-2012 at 09:36 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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