+ Reply to Thread
Results 1 to 2 of 2

Macro that steps, but won't run!

  1. #1
    Registered User
    Join Date
    06-22-2007
    Posts
    1

    Macro that steps, but won't run!



    System = Excel 2003, VB 6.3, Pent 4 2.9 ghz, 1.5 GB RAM, 21 GB free on HD (out of 40GB total)

    I have a spreadsheet that has about 10 tabs.

    To update each pivotable in each tab, I run the following code.

    At the same time, I want to readjust the column sizes (after updating the pivots, they expand too much due to header) This is where the problem lies.

    The Code will allow me to Step through it successfully, the columns resize, but will not RUN correctly!

    Here is the simple code:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Any help would be greatly appreciated!
    Last edited by VBA Noob; 06-22-2007 at 01:18 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The forum Rules state that you must wrap your code in Code Tags!

    Your code for resizing is outside the loop, so it won't work on each sheet.

    Try this instead

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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