+ Reply to Thread
Results 1 to 4 of 4

How to Insert a Title When Using an Inserting New Column Macro

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    CDN
    MS-Off Ver
    Excel 2007
    Posts
    135

    How to Insert a Title When Using an Inserting New Column Macro

    Hi Everyone,

    The below macro will insert a new column adjacent to a cell in row 10 whenever the cell contains anything but blank,space, or the word (spare).

    What I'm trying to figure out is how to include a title of the inserted column. The title would appear only in the column inserted and be in row 10.

    Any suggestions to modify the below code to do so?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: How to Insert a Title When Using an Inserting New Column Macro

    cells(10,i).offset(0,1).value = "Title"

  3. #3
    Forum Contributor
    Join Date
    10-03-2012
    Location
    CDN
    MS-Off Ver
    Excel 2007
    Posts
    135

    Re: How to Insert a Title When Using an Inserting New Column Macro

    Would I put that after the else statement, as in:

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: How to Insert a Title When Using an Inserting New Column Macro

    Yes thats right.

+ 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