+ Reply to Thread
Results 1 to 5 of 5

selecting spreadsheet instead of specific columns

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    selecting spreadsheet instead of specific columns

    Hello,

    I am new to macros and currently working on a file that is an export from another application. The macro is basically to add lines, reformat, etc. While it is not complicated (for those who are familiar with macros) it does have a lot of steps.

    The issue I am having is with trying to format the columns as percentage, currency, etc. When I run the macro as is, it selects columns A-J, instead of just the individual column. At the end of that section, however, the formatting for columns K - N are fine. The section in red is the section I am having issues with.
    Any help will be greatly appreciated!!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: selecting spreadsheet instead of specific columns

    Hi, ds0919,

    instead of
    Please Login or Register  to view this content.
    try
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: selecting spreadsheet instead of specific columns

    What exactly is the problem?

  4. #4
    Registered User
    Join Date
    10-19-2012
    Location
    Virginia
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: selecting spreadsheet instead of specific columns

    Holger,

    That worked perfectly!!!

    Can you tell me if you see other areas that I could condense? I am trying to learn and am doing so one step at a time.

    Thanks for your timely and accurate response!!

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,199

    Re: selecting spreadsheet instead of specific columns

    Hi, ds0919,

    as your macro is mostly code from the macro recorder you can avoid the typical going of the recorder: select an item and then work on it. And there is at least one line of code that I sort of dislike (Merge).

    untested, an option would be to use BorderAround for the outside borders of the range:
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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