+ Reply to Thread
Results 1 to 4 of 4

Auto fill and refresh macro

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    8

    Auto fill and refresh macro

    Hello,

    This is my first post, but have been lurking on the forums for a few months. Anyways, I've been trying to create a macro for a auto fill and refresh macro, but failed at accomplishing what I needed. As you can see on the attached excel file. Data sheet tab is pulling data from GDL tab. I would like to auto refresh the data sheet by pressing a button and have the information I need pulled from GDL. As you can see on the macro I attached to button 5, I am getting a debug error. It would be greatly appreciated if anyone can help me out.

    Thank you in advance.

    SLog 2012 ptable1.xls

  2. #2
    Registered User
    Join Date
    12-21-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Auto fill and refresh macro

    Hi incubi,
    Welcome to the Excelforum!

    Please try the below code for your button click event

        Range("A7:Q8000").Select
        Selection.FillDown
        Range("A6").Select
    Before running the automation please ensure the below changes are done
    1. In cell A7 put =$A$5
    2. In cell P7 put =IF(K7=0,"",O7/K7)
    3. In cell Q7 put =IF(L7=0,"",O7/L7)
    This is to ensure that all the formulas in Row 7 are accurate.
    Hope this helps.
    Kiran

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Auto fill and refresh macro

    Kiran,

    Thank you so much for the help! It works!! It was driving me crazy trying to figure this out.

  4. #4
    Registered User
    Join Date
    12-21-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    69

    Re: Auto fill and refresh macro

    Glad to know it had worked. Happy to support any thime!


    Thank those that provided useful help, its nice and its very well appreciated...use the star on the lower left of the post

+ 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