Trouble setting HeadingFormat on table created exclusively by VBA

I'm taking the text from the Notes pages of a PowerPoint presentation, and turning it into a table in Word. Each slide has a row in a table, with one of the columns being the text from the notes page of the slide.
So far so good!
The first row in the table (as well as the first to be created), must be a HeadingRow, repeated at the top of each row.
The code I have is as follows (just before the end of the creation process:
(Code brackets not selectable - even though they are visible)
[code]
If GenScript.CreateRecordingScript Then
   RecordingScriptTable.Rows(1).HeadingFormat = True
   RecordingScript.Close SaveChanges:=wdSaveChanges
End If
[/code]
The code runs well; the document is created, and yet, when I look at it a couple of minutes later in Word itself, the table does
not have the proper table headings.
I've tried looking in many places, but no really constructive suggestions (except, keep a spare document with a manually configured table, and then copy from that).
It has to e doable - after all M$ does this when using the keyboard andmouse - and the documentation says so...
Grateful for any ideas - this is no way to spend a weekend!
Tony

Hi,
This is the forum to discuss questions and feedback for Microsoft Word, the issue is related to code, you'd better post your question to the MSDN forum
http://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support

Similar Messages

  • I purchased a gift card and entered the code to redeem it; however, i never used it.  i initially had trouble setting up my itune account and had to create a new acct.  is this why my gift card is invalid?

    i purchased a gift card and entered the code to redeem it; however, i never used it.  i initially had trouble setting up my itune account and had to create a new acct.  is this why my gift card is invalid?

    Yes.
    You have already redeemed it.  It should be available on the old account.  Why did you make another?

  • Having trouble setting up network

    Hi guys,
    I just recently moved to a new house and am having trouble setting up the network with my airport extreme. There is a cable modem that is networked to the house so that every room has an outlet.
    I connected the airport to one of the outlets with my macbook and when I create network, I cannot connect to the internet wirelessly even though the macbook detects a network when I set it up with bridge mode. But hard wired through the router I can surf the web as I am doing right now.
    When I hit share an IP address, the internet does not work at all. It seems to work fine with my old netgear router, but would prefer using the airport.
    I've also reset the airport as well with still no luck. Any help would be appreciated. Thanks

    Have you tried powering down the modem for 5 min and then turning on with the ethernet connected to the WAN port of airport extreme?

  • How to update multiple records in a table created in view (web dynpro)

    Here is my coding......
    *coding to get the district value
    DATA lo_nd_district TYPE REF TO if_wd_context_node.
        DATA lo_el_district TYPE REF TO if_wd_context_element.
        DATA ls_district TYPE wd_this->element_district.
        DATA lv_district_txt LIKE ls_district-district_txt.
      navigate from <CONTEXT> to <DISTRICT> via lead selection
        lo_nd_district = wd_context->get_child_node( name = wd_this->wdctx_district ).
      get element via lead selection
        lo_el_district = lo_nd_district->get_element(  ).
      get single attribute
        lo_el_district->get_attribute(
          EXPORTING
            name =  `DISTRICT_TXT`
          IMPORTING
            value = lv_district_txt ).
    *coding to diplay records when clicking a button(Submit)
    DATA lo_nd_table TYPE REF TO if_wd_context_node.
    DATA lo_el_table TYPE REF TO if_wd_context_element.
    DATA ls_table TYPE wd_this->element_table.
      DATA lv_district LIKE ls_table-district.
    navigate from <CONTEXT> to <TABLE> via lead selection
      lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
    get element via lead selection
      lo_el_table = lo_nd_table->get_element(  ).
    get single attribute
      lo_el_table->set_attribute(
        EXPORTING
          name =  `DISTRICT`
       " IMPORTING
          value = lv_district_txt ).
    The above coding updates only one record to that
    table created in view.
    If i enter 2nd district value means then the first record
    in the table is overwritten.
    So my need is the record should not be overwritten.
    it(2nd record ) should be displayed after the 1st record.
    Any one can help me and send the coding plz....

    instead of using set attribute you should use bind table method to display/update the records in table view.
    step1 ) collect all the data in a local table
    step2 ) and the bind that lacal table with your node
    search1 = wd_context->get_child_node( name = `TABLE1` ).
    search1->bind_table( lt_detail)
    here lt_detail is your local table and TABLE1 is node which is bound with table ui element.

  • MSI X58 Pro - I'm having trouble setting up my first Raid 0 Array

    Hey guys!  I have an i7 920, X58 Pro, 3x2GB DDR3, Radeon 5850, 640GB WD Black (Windows 7 64 bit + applications) and 1TB Samsung F3 (backup) system and I'm having trouble setting up a raid 0 array.  I recently decided to purchase two additional 1TB Samsung F3 harddrives in order to create a raid 0 array, while still keeping my original two harddrives separate.  I installed the new harddrives today, installed the JMicron drivers that were on the drivers disk that came with my motherboard, went into the bios, and changed it from IDE to RAID.  I then went into the raid bios, selected the two new harddrives and selected raid 0, saved everything and tried to load Windows and Windows refuses to boot up.  I got an option to try fixing Windows but that didn't end up fixing anything.  Finally, I was forced to go back into the bios and switch it from RAID back to IDE just to get Windows to boot up again.  Does anyone know what I need to do in order to get this raid 0 to work?  Thanks a lot in advance for your help!

    Perhaps create a software RAID? You can do it in Windows through Control Panel --> Administrative Tools --> Computer Management --> Disk Management.
    A quick guide: http://www.softwaresecretweapons.com/jspwiki/windows-7-software-raid-disk-partition-and-volume-context-menus

  • Importing from a set of Oracle tables with a minimum development effort - SSIS 2012

    Hi,
    I'd like to import into a SQL Server 2012 db a set of Oracle table without creating a specific data flow task for each table to import. Is it possible to accomplish a such task?
    Thanks

    Hi pscorca,
    As Arthur suggested, the simplest approach is to make use of the SQL Server Import and Export Wizard. This tool enable us to select multiple Orace tables at one time, and even create the destination table automatically. Then, we can save it
    as a package without running it immediately. In this way, there are multiple Data Flow Task created automatically for each source table.
    Regards,
    Mike Yin
    TechNet Community Support

  • Add Audit Columns to the Dimension and Fact tables (Created & modified date Time)

    Hi All,
    I am new to SSIS , I have to Add Audit Columns to the Dimension and Fact tables (Created & modified date Time) of the package.
    Please let me know the best and easy way through which I can implement the same.
    If possible suggest some real time example or link where I can find the same
    Regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    You can simply use ALTER TABLE ADD.. syntax to add the columns if the tables already exist.
    You can generate a single script for all tables using INFORMATION_SCHEMA.TABLES view
    You can make then of NOT NULL type and set the default value to GETDATE()
    In addition you can also have a Audit Trail trigger for UPDATE to make sure Modified date gets updated correctly on each update if not passed explicitly.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Trouble setting up hard drive

    i'm having trouble setting up my hard drive. i have a 40GB with 5 partitions:
    part1 (primary) - slackware install with boot flag
    part2 (primary) - /home directory
    part3 (primary) - 1GB swap
    part5 (logical) is ~10GB storage
    part6 (logical) is ~10GB free space
    i enter the setup utility, set up part6 as a linux partition, logical, with boot flag, write the changes, then quit. i think once or twice it prompted me to reboot, so i rebooted.
    then i tried to set the filesystem mount points. i select part3 for swap, part6 for /, and then Done (will manually mount /home later, don't want to mess with it now).
    the installer seems to successfully set up the swap, then it fails to create the reiserfs on part6, with an error that it can't mount the partition:
    Error mounting /mnt/
    what is the problem?
    appreciate any help - arch looks awesome, can't wait to get it going!
    edit: the problem was indeed the logical partitions. it kind of sucks though, b/c now i have to use the full 20GB for the arch install, which will probably only take 1 or 2 GB. i wanted to keep that at 5-10GB at the most, because i want to use the rest of the disk as storage. well, i'm installing on the 20GB temporarily for now to check it out. if anyone has any pointers about how i can better structure the disk i'd appreciate it.

    I dont know about lilo, which I guess you use because of Slackware, but you do not need any partition flagged as bootable with grub installed to the MBR.
    Here is my lappie:
    hda1 : 83 Linux  30Mb
    hda2 : 83 Linux  30Gb
    hda3 : 83 Linux 450Mb
    hda4 : 83 Linux  40Mb
    The 30 & 40M patitions are just there for braneded distros that think you need swap or boot and therefore force them on you.
    But what may interest you is that I do not have any of them flagged as bootable. The bootable flag makes absolutely no difference whatever to this machine, it boots wherever grub directs it to.

  • Single result set across multiple tables

    Hi - what's the best way to perform a single query that can pull
    a single result set across multiple tables, ie., a master table
    containing subject details and child table containing multiple
    records with detail.
    I know how to do this for two columns in the same table via
    indexing, but how about across tables?
    Cheers,
    John

    I am not sure if I understood your question, but you can use
    Intermedia Text with USER_DATA_STORE to create an index with data
    source from multiple tables.
    (see technet.oracle.com -> products -> oracle text)
    Thomas

  • Troubles finding activities that were created by others.

    Hello experts,
    I'm having troubles finding activities that were created by others.
    I should mention that we've upgraded our system to EHP1.
    This problem occurs only in our upgraded system.
    In order to find the activities i am using BTQAct search object,
    using object id.
    In case that i'm logged in to the system with the creating user I am
    able to find this particular activity,
    in case that i'm logged in with any other user, I am not able to find
    this particular activity but, I am able to find any other activity that was created by me.
    To remind you, I had no problems finding any activity with any user
    and NOT depending who is the creator of that specific activity.
    Why is this happening?
    What can I do to fix this?
    Thank you very much,
    Maor.

    Thanks for the suggestions, Erland.  Unfortunately, I checked and there weren't always schemas added for these users as some were sysadmins or db_owners which is the exception to this feature in security.  Also, their SIDs don't match up with any
    existing SID values  in sys.database_principals or sys.server_principals.  The groups to which they belong are there, but these SIDs that aren't able to be resolved are different, and created for the individual user.
    The only way I've found to identify who owns an object is when it's a job and I use the system function SQLAgent_SUSER_SNAME() which will return the actual domain\account name of the person who owns the job.  This object only exists in msdb and SUSER_SNAME
    doesn't work in user databases.  There might be some other system function out there I haven't stumbled on yet but the two system tables you mentioned unfortunately rarely help.  Let me know if you have any other ideas?  And thanks for the response!

  • Saving SQL result set in new table

    Is it possible to save a SQL result set in a new table? (easily)
    What I want to do is duplicate, or back up a table.

    Create table temp as (select a,b,c from your_table); This statement will create a table with your resultset. This will work in Oracle, I am not sure about others.

  • Unexpected table created after schema registration

    I registered the following xsd. Even though I did not specify any tables to be created, I see a table in "user_xml_tables". Could someone explain what's going on? Thank you.
    1. This is the xsd file.
    <xsd:schema version="1.0" xdb:storeVarrayAsTable="false" xdb:mapUnboundedStringToLob="false" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:complexType name="val_type">
    <xsd:sequence>
    <xsd:element name="e1" type="xsd:integer" />
    <xsd:element name="e2" type="xsd:integer" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="coll5_type" xdb:SQLType="coll5_sqltype">
    <xsd:sequence >
    <xsd:element name="val" type="val_type" maxOccurs="200"
    xdb:SQLInline="false"/>
    <xsd:element name="val2" type="xsd:integer" xdb:SQLType=
    "INTEGER" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    2.Register the schema
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'http://oracle.com/xdb/coll2.xsd',
    SCHEMADOC => bfilename('TICKERDIR','coll2.xsd'),
    LOCAL =>TRUE,
    GENTYPES => TRUE,
    GENTABLES => TRUE,
    CSID => nls_charset_id('AL32UTF8'));
    END;
    3. ************ Why is this table created? ******************************************
    SQL> select table_name from user_xml_tables;
    TABLE_NAME
    val777_TAB
    SQL> desc "val777_TAB"
    Name Null? Type
    TABLE of SYS.XMLTYPE(XMLSchema "http://bloomberg.com/xdb/coll2.xsd" Element "val") STORAGE Object-relational TYPE "val_type776_T"
    SQL> desc "val_type776_T"
    "val_type776_T" is NOT FINAL
    Name Null? Type
    SYS_XDBPD$ XDB.XDB$RAW_LIST_T
    e1 NUMBER(38)
    e2 NUMBER(38)

    I do not think this is because GENTABLES=> TRUE is set.
    1. Note that for the posted schema, a table is created only for coll5_type, but not val_type.
    2. I modifed the schema as follows (see below): Its the same as the original except that we have two additional complex types, we still have ONE table that is generated. We should expect THREE tables to be generated if the expected behaviour of GENTABLES=> TRUE is to create tables for every complexType.
    3. If you remove coll5_type from the modified schema, there are NO tables generated.
    Conclusion: the table is generated only if the complexType has a collection with SQLInline="false" : i.e. we require a varray of REF storage.
    What's the reason for this behaviour?
    1. Here's the modified xsd:
    This schema has:
    a) has 3 complex types defined
    b). no global elements (tables are supposed to be generated only for global elements)
    3. no tables have been specified in the xsd.
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema version="1.0" xdb:storeVarrayAsTable="false" xdb:mapUnboundedStringT
    oLob="false" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsd="http://www.w3.or
    g/2001/XMLSchema">
    <xsd:complexType name="val_type">
    <xsd:sequence>
    <xsd:element name="e1" type="xsd:integer" />
    <xsd:element name="e2" type="xsd:integer" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="coll3_type" xdb:SQLType="coll3_sqltype">
    <xsd:sequence >
    <xsd:element name="val" type="val_type" xdb:SQLCollType=
    "coll3_sqlcolltype" maxOccurs="200"/>
    <xsd:element name="val2" type="xsd:integer" xdb:SQLType=
    "INTEGER" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="coll4_type" xdb:SQLType="coll4_sqltype">
    <xsd:sequence >
    <xsd:element name="val" type="val_type" maxOccurs="200"
    xdb:SQLCollType="CLOB" />
    <xsd:element name="val2" type="xsd:integer" xdb:SQLType=
    "INTEGER" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="coll5_type" xdb:SQLType="coll5_sqltype">
    <xsd:sequence >
    <xsd:element name="val" type="val_type" maxOccurs="200"
    xdb:SQLInline="false"/>
    <xsd:element name="val2" type="xsd:integer" xdb:SQLType=
    "INTEGER" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    2.
    BEGIN
    DBMS_XMLSCHEMA.registerSchema(
    SCHEMAURL => 'http://bloomberg.com/xdb/coll2.xsd',
    SCHEMADOC => bfilename('TICKERDIR','coll2.xsd'),
    LOCAL =>TRUE,
    GENTYPES => TRUE,
    GENTABLES => TRUE,
    CSID => nls_charset_id('AL32UTF8'));
    END;
    3.
    SQL> select table_name from user_xml_tables;
    TABLE_NAME
    val779_TAB

  • Query to fetch all tables created by user

    Hi All,
    I am Joshi. I would like to draft a query which will return all the tables created by me in one day. Can anyone give me the query to do so.
    Thanking you
    Joshi

    To get list of tables owned by X and created on 16-May-2007
    ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY HH24:MI:SS';
    SELECT OBJECT_NAME,CREATED
    FROM DBA_OBJECTS
    WHERE OBJECT_TYPE='TABLE'
    AND OWNER='X'
    AND CREATED BETWEEN '05/16/2007 00:00:00' AND '05/16/2007 23:59:59';
    Change the date to the one of your choice
    Regards

  • Getting error while setting color to table rows?

    Hi All
    I am trying to setting colors to table rows based on dropdown value.
    lv_Dropdown vaue =1 i want to set one color, 2-another color like that.
    For this I create attribute CELL_DESIGN of type WDUI_TABLE_CELL_DESIGN in node, and i bind this attribute to every column celldesign property in table. and my code in on select of dropdown.
      data lr_column type ref to cl_wd_table_column.
    data:obj_table type ref to cl_wd_table.
    lr_column = obj_table->get_column( id = 'TABLE_WEEK1' ).
    if lv_dropdown = 1.
       lr_column->set_cell_design(
    cl_wd_table_column=>e_cell_design-badvalue_dark ).
    endif.
    lr_column->bind_cell_design( path = 'SEGMENT1.CELL_DESIGN'  ). ...Giving dump at r_colum = get_column( )
    I follow correct code or not??
    Cheers,
    Venkys.

    Sorry Sarbjeet and baskaran i am not getting,
    I want to set colors to row of a table on dropdown selection. In dropdown i ahve a code like
    DATA lo_nd_segment1 TYPE REF TO if_wd_context_node.
      DATA lo_el_segment1 TYPE REF TO if_wd_context_element.
      DATA ls_segment1 TYPE wd_this->Element_segment1.
      data lt_segment1 type wd_this->elements_segment1.
      DATA lv_segment TYPE wd_this->Element_segment1-segment.
    navigate from <CONTEXT> to <SEGMENT1> via lead selection
      lo_nd_segment1 = wd_context->get_child_node( name = wd_this->wdctx_segment1 ).
    get element via lead selection
      lo_el_segment1 = lo_nd_segment1->get_element( ).
      lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
    get all declared attributes
      lo_el_segment1->get_static_attributes(
        IMPORTING
          static_attributes = ls_segment1 ).
    DATA : lv_dropdown type string .
    lv_dropdown =  ls_segment1-segment.
    if lv_dropdown = 1.  SET ONE COLOR TO THAT ROW
    endif.
    if lv_dropdown = 2.  SET ONE COLOR TO THAT ROW
    endif.
    Now what should be the code in WDMODIFYVIEW method to set table row with colors.
    Cheers,
    Venkys.

  • How to return rows from tmp table created inside function??

    Hi,
    I'm trying to return rows from a cursor or table (created within
    the function). How do I specify the return type?

    Hi,
    Here is the code that examples to create a function that can
    return data from table.This is achieved using REFCURSOR concept.
    Hope this helps you.I'm giving all stuff in single PL/SQL
    block.You can break it and create a package and declare
    refcursor type and function in that as well.
    DECLARE
    -- Declare generic cursor type
    TYPE gencur_type IS REF CURSOR ;
    -- Declare generic cursor varaible
    gencur gencur_type;
    -- Declare record type
    TYPE rec_type IS RECORD(descr emp.ename%type) ;
    -- Declare record type variable
    rec rec_type;
    --This how you declare a local function that returns gencrtype
    data set
    --This function is called in main block
    FUNCTION call_refcur return gencur_type
    AS
              rr gencur_type;
    BEGIN
         OPEN rr FOR SELECT descr FROM emp;
         RETURN rr;
    END;-- end of local function
    -- Main block begins here
    BEGIN
    -- Call the local function so that gencur will have
    -- the data set returned by select statement
    gencur:= call_refcur;
    -- Open a loop to test the stuff
    LOOP
         FETCH gencur INTO rec;
         EXIT WHEN gencur%NOTFOUND;
         null;
         dbms_output.put_line(rec.ename);
    END LOOP;
    END;
    Regards,
    Sridhar

Maybe you are looking for