+ Reply to Thread
Results 1 to 4 of 4

Selecting an entire column and aligning it upon worksheet change.

  1. #1
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Selecting an entire column and aligning it upon worksheet change.

    Hello,

    I'm using matlab to export data into an excel sheet, I'm having trouble with the matlab syntax so i thought itd be easier to write a sub for worksheet change.

    Matlab will be exporting to the same workbook every time.

    Upon changes occurring on the workbook, I want to select the B column, and align the contents in it to the right.
    Please help

    the sheet is Sheet1

    Thanks!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Selecting an entire column and aligning it upon worksheet change.

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    05-20-2013
    Location
    Ann Arbor, MI
    MS-Off Ver
    Excel 2010
    Posts
    255

    Re: Selecting an entire column and aligning it upon worksheet change.

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.

    Thanks.

    will this be under:

    Private sub Worksheet_change()

    end sub?

    and also,

    do i just type xlright if i want it aligned right?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Selecting an entire column and aligning it upon worksheet change.

    I'm not sure what you are doing, but
    Please Login or Register  to view this content.
    will work. But the code will run each and every time a change is made in the sheet.
    You can choose xlRight, xlCenter or xlLeft in the simplest cases.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Overflow Error While Selecting The Entire Worksheet
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-04-2012, 01:51 PM
  2. Selecting an entire column minus two cells.
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2011, 10:00 AM
  3. Selecting an entire row of a column
    By booo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2010, 05:13 PM
  4. Keyboard shortcut or selecting entire column
    By Precious_Stone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2006, 12:45 PM
  5. Selecting entire column.
    By bawahoo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2005, 02:31 AM

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