+ Reply to Thread
Results 1 to 5 of 5

amend macro to select all but last column of data

  1. #1
    Registered User
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    amend macro to select all but last column of data

    Hi, I'm a newbie to all this but I have the following macro - it works ok and selects all the data in spreadsheet and converts to Proper Case

    However I also need a macro to select all except the last column of data and convert all except the last column to Proper Case.
    It is for Post / Zip code info. so wish to keep it in Upper Case.

    What I have already is:

    Please Login or Register  to view this content.
    I was hoping I could easily amend the above to select all except last column.
    Any help would be greatly appreciated.

    Thank you
    Last edited by MichPr; 05-12-2014 at 03:05 PM. Reason: code tags

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: amend macro to select all but last column of data

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between
    Please Login or Register  to view this content.
    tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: amend macro to select all but last column of data

    Try this code.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: amend macro to select all but last column of data

    Thank you.
    I get an error at the following line

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: amend macro to select all but last column of data

    Please supply a sample worksheet to test code with. When you ran debug, what was the error message?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Macro to analyze and amend Data
    By Tao_ in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2012, 11:16 AM
  2. Need a Macro to select a column and turn it into a csv row of data
    By PostalMike in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2012, 06:51 PM
  3. Macro to select a specific column of filtered data in a table
    By mgrothendick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2012, 06:01 PM
  4. Amend macro to prompt for file name/path of source data
    By dshilan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2012, 06:12 AM
  5. Editting Macro to Select Last Empty Column to Paste Data
    By Zaraf in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-05-2008, 11:40 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