+ Reply to Thread
Results 1 to 4 of 4

VB Code is correct but table fromats not getting updated.

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    17

    VB Code is correct but table fromats not getting updated.

    Hi,

    I have written a code for formatting the table to specific format, If I put in debugger mode and run the program means its getting updated correctly, but if I run directly the table is not getting updated . can you help in finding the issue. I attached the excel sheet for the table

    Its working till the point of selecting the table for applying the borders, but its not applying borders.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VB Code is correct but table fromats not getting updated.

    It is difficult to test you code as there are a number of sheets that are missing. You have attached sheet3 only.
    If you say the error occurs on for applying the borders, I suspect this is because you have with statement and then you start selecting the ranges which is bad idea IMO. You have already set up you with statement, so avoid using select. I have tried to do it, but I am not sure as I can not test it. I hope these lines would give you a good start

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-29-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: VB Code is correct but table fromats not getting updated.

    Hi,

    I did the changes but still its not working. I attached the excel sheet with all details and macro in it. Please look in to pivot macro in it.


    Thanks in Advance,
    Menaka B
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: VB Code is correct but table fromats not getting updated.

    Menaka,
    I have now tested your code. There is no error and all the lines of the code are working as intended. The bordering occurs on sheet3. I have removed them and run the code and it does all the bordering and lining.

+ 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