+ Reply to Thread
Results 1 to 7 of 7

Office 2010 macro error - Not all steps recreated in macro - Help!

  1. #1
    Registered User
    Join Date
    07-17-2007
    Posts
    15

    Office 2010 macro error - Not all steps recreated in macro - Help!

    I'm using Office 2010 on Windows 7 64bit. I previously had no problems on my old PC (Vista 32bit - Office 2007) in creating and using this simple macro. All this macro does is some basic calculation & formatting.

    The problem is that when I execute the macro on the tabs, there are 3 steps missing, specifically -

    Adding the tab name to the centre header (nothing appears)
    Adding the page of page to the centre footer (page number appears but total pages doesn't appear)
    Adding the date to the right side footer (nothing appears)

    All other steps seem to be fine. This is causing me great pains as I have to manually insert these 3 steps to every tab.

    Now, I'm not a programmer and do not understand visual basic, so layman's terms please. From what I can see, the VB code contains those 3 steps (which I have highlighted below) so any help would be much appreciated. Many thanks! -

    Please Login or Register  to view this content.
    Last edited by duffer; 12-21-2011 at 09:44 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Office 2010 macro error - Not all steps recreated in macro - Help!

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Office 2010 macro error - Not all steps recreated in macro - Help!

    What exactly are you trying to do with your macro?
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Office 2010 macro error - Not all steps recreated in macro - Help!

    I would suggest turning on the macro recorder and recreate your print settings. Comparing the results with the original code may suggest a solution.

  5. #5
    Registered User
    Join Date
    07-17-2007
    Posts
    15

    Re: Office 2010 macro error - Not all steps recreated in macro - Help!

    Hi, I just need to add the name I have given to each tab to the header and also to have the total number of pages on each footer.

    We use a very limited database and I need to put the annual sales quantities for each client on a separate tab/page. This information is exported from the database into Excel via copy & paste. I just need to smarten up the 'look' of the data. However the data doesn't include the name so I name each tab and using this macro I add the tab-name to the header. I suppose I could write the name on the sheet as well but I'm wondering why is this not working for me.

    Many thanks!

  6. #6
    Registered User
    Join Date
    07-17-2007
    Posts
    15

    Re: Office 2010 macro error - Not all steps recreated in macro - Help!

    Quote Originally Posted by dangelor View Post
    I would suggest turning on the macro recorder and recreate your print settings. Comparing the results with the original code may suggest a solution.
    I used the macro recorder in the first place. Do you mean I should try with a new file? I do this thing often and it has always worked in Office 2007. It's since I got my new pc with Office 2010 that I have this problem.

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Office 2010 macro error - Not all steps recreated in macro - Help!

    Yes, try recording the page setup for the header and footer you want. There may be subtle changes in the syntax in the xl2010 VBA code.

+ 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