+ Reply to Thread
Results 1 to 7 of 7

How to set range and define rows/columns in this code

  1. #1
    Registered User
    Join Date
    03-29-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    19

    How to set range and define rows/columns in this code

    Can someone please explain to me how to define my rows/columns in this code? I want to set a range such as A through D and rows 1 through 10, for example.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How to set range and define rows/columns in this code

    Hi rim,

    Try something like:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Registered User
    Join Date
    03-29-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How to set range and define rows/columns in this code

    Lewis, I guess I should have included the entire code. I tried what you suggested but I can't get it to work with this script. My script works but only exports Column "A"
    Thanks

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How to set range and define rows/columns in this code

    Hi Again,

    I'm a little confused about what you're trying to do. The following is what it looks to me what you want. If I am wrong, it would be very helpful if you uploaded your input data Excel file, and uploaded your output HTML file.

    Lewis

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-29-2014
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: How to set range and define rows/columns in this code

    Quote Originally Posted by LJMetzger View Post
    Hi Again,

    I'm a little confused about what you're trying to do. The following is what it looks to me what you want. If I am wrong, it would be very helpful if you uploaded your input data Excel file, and uploaded your output HTML file.
    Lewis,
    Thanks for replying. I have attached an example file of what I am trying to accomplish. As you will see the file that is exported only contains the "A" column but I am needing all columns to export. Don't forget to create a folder called 'Files' at the same level as the spreadsheet. Thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: How to set range and define rows/columns in this code

    Try this (untested):
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: How to set range and define rows/columns in this code

    rimshot,

    Try my code with your file. Your sample input file is the same (similar to) the test file I used. If my code doesn't work, please upload a sample output file.

    Lewis

+ 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. Trying to define a range to include both rows and columns with
    By SamDeets in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2013, 03:47 PM
  2. [SOLVED] Define a range of fixed number of columns, but unlimited number of rows
    By ccopac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2012, 02:23 PM
  3. [SOLVED] Need to define a range for the code. Thanks!
    By garychen529 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-24-2012, 07:06 PM
  4. [SOLVED] Looking for code to define a range
    By Ant in forum Excel General
    Replies: 3
    Last Post: 10-03-2005, 02:05 PM
  5. pivot table - Can I pre-define rows and columns?
    By WRBailey in forum Excel General
    Replies: 3
    Last Post: 05-17-2005, 02:06 PM

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