+ Reply to Thread
Results 1 to 5 of 5

Re: How to set logic for a macro tool that will import , operate and save the reports.

  1. #1
    Registered User
    Join Date
    11-18-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: How to set logic for a macro tool that will import , operate and save the reports.

    Hello All Experts,

    I am doing a job where I have to prepare around 100 reports using five data files.
    I want to prepare a Macro enabled excel tool that will prepare all reports.
    What should be logic so that my team will use this macro file with minimum steps to do?
    I have a simple logic given below but I want experts’ advice as I am new to VBA.

    My Logic Steps-
    1) Import all five data files in Excel macro tool
    2) Perform operations on them, (Operations are kind to filter column and save them)
    3) Tool will create new folders
    4) Save prepared reports to allotted folders
    5) Exit

    Experts, I need your opinion on this or any new thought. Please help on this.
    Note: All five files have around 50 MB data.

    Please let me know if require more info from my side.

    Thank you,
    VKR
    Last edited by VKR; 12-04-2013 at 08:08 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Please Suggest Logic to Prepare a Macro Excel Tool

    Hi VKR
    A few questions for you ...
    1. What type of files are the data files ? .txt, .csv etc
    2. Are the separate reports always based on the same criteria or will the user need to set them?
    3. Are the data files 50Mb EACH or is that the total size?
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    11-18-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Please Suggest Logic to Prepare a Macro Excel Tool

    Hey Andy,

    Thanks for reply.

    Ans:
    1) all are excel files, .xlsx is file type.
    2) All reports have fixed criteria. Nothing for user to enter. I also want to use fixed save location for creating folders.
    3) All combine data files are 50 MB as A 20 MB , B 10 MB etc. Not individually.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Please Suggest Logic to Prepare a Macro Excel Tool

    Hey VKR

    The basic flow then would be to
    1. Open each file in turn
    2. Compile all the data into a single database
    3. Extract the relevant data for each of the 100 reports - create a new file from it and save it to disk.

    Given the file sizes you mention Excel 2003 may have a problem storing all the data on a single worksheet (or at least in a single range of columns) and this would significantly alter the programming in step 2.

    Can you check the number of rows in each of your data input files - We need to find the Max possible we may encounter.

  5. #5
    Registered User
    Join Date
    11-18-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Please Suggest Logic to Prepare a Macro Excel Tool

    Few Queries
    1. Open each file in turn.
    Query - Yes It should be, but I want user will browse file (one by one) and data will collected to database. Is it possible?

    2. Compile all the data into a single database
    Query - Should I create separate excel file as database instead of Macro file?

    3. Extract the relevant data for each of the 100 reports - create a new file from it and save it to disk.
    Query - This is excellent thought. I have note it down.

    I am using Excel 2010 so I think size is not a big issue.
    Numbers of rows are not fixed. I generally use last row of data to select all as data has no missing entry.

+ 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. I need help to prepare a Macro as am struggling with this since long
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2012, 04:18 AM
  2. Macro in an Excel Form + Logic
    By psanghvi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2011, 10:13 AM
  3. How to add a button in Excel tool bar in order to run my macro?
    By Terry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2005, 04:30 AM
  4. excel 4.0 macro remover tool
    By Sachin Shah in forum Excel General
    Replies: 0
    Last Post: 08-25-2005, 12:05 AM
  5. excel 4.0 macro removal tool
    By Sachin Shah in forum Excel General
    Replies: 0
    Last Post: 08-25-2005, 12:05 AM

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