Results 1 to 5 of 5

Issue with selecting columns via macros

Threaded View

  1. #4
    Registered User
    Join Date
    06-26-2014
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    43

    Re: Issue with selecting columns via macros

    Thanks Jim & Norie for your quick replies! I really appreciate it.

    From your comments I managed to trim my code right down and get it to work. The "select" function seemed to be causing a lot of grief but the last time I used this piece of code I had no problems.

    What I was trying to do was copy a chunk of data from one sheet to another then remove the header, this data would vary in length but would always be contiguous.
    Then I wanted to change the format of one of the columns.

       'Copy from CSV to Quote and delete first row
        Sheets("CSV").UsedRange.Copy Destination:=Sheets("Quote").Range("B12")
        Sheets("Quote").Range("B12").EntireRow.Delete
             
        'Change to text
        Sheets("Quote").Columns(2).NumberFormat = "@"
    Last edited by Jo2710; 11-12-2014 at 08:48 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 02:20 AM
  2. Selecting all data in specific columns without selecting adjacent column.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 03:50 PM
  3. [SOLVED] Issue w/ Current Region, Select 3 Columns of Data without selecting adjacent columns
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 02:57 PM
  4. Issue Selecting a Dropdown from IE using VBA
    By parthisiva10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 04:00 PM
  5. Cell Selecting issue
    By Dr_Dude in forum Excel General
    Replies: 1
    Last Post: 10-18-2011, 01:04 PM

Tags for this Thread

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