+ Reply to Thread
Results 1 to 4 of 4

Automate Data to Text sequence

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Automate Data to Text sequence

    Hello, could someone please help me use Excel 2003 to automate the following sequence of events that I currently do manually?

    AutoFilter to filter the City in column B
    AutoFilter to filter the Rotation in column X
    AutoFilter to filter the Positional Status in column Y
    Hide columns B:W

    Use the computer mouse to select a range of that includes columns A, and X to AR (inclusive).

    Copy 'n' paste this selected range to worksheet: Data to Text at cell A1

    Insert a new column by selecting column A and right-clicking on the column and selecting Insert

    Populating the new column A starting at cell A1 with number 1 and autofilling down to the last record (1, 2, 3, 4, 5, etc...)

    Delete the folowing columns: C, D, E, G, J, L, M, N, P, Q R, S, T and V

    Copy 'n' paste the all the remaining data to a new documnet in MS Word 2003

    Select the entire table in MS Word

    From the MS Word file menu - Select Table - Convert Table to Text

    In the Convert to Table to Text pop-up window - select Other radio button and type in a forward-slash "/" in the input box adjacent to the radio button (without the quotes).

    Click OK



    Example:

    AutoFilter the City: Sao Paulo
    AutoFilter the Rotation: Second
    AutoFilter the Positional Status: Vacant
    Hide columns B:W

    Select the range A6:AR12

    Copy 'n' paste this range to worksheet: Data to Text at cell A1

    Insert a new column by selecting column A and right-clicking on the column and selecting Insert

    Populating the new column A starting at cell A1 with numbers 1 and autofilling down to the last record (1, 2, 3, 4, 5...)

    Delete the following columns: C, D, E, G, J, L, M, N, P, Q R, S, T and V

    Copy 'n' paste the all the remaining data to a new document in MS Word 2003

    Select the entire table in MS Word

    From the MS Word file menu - Select Table - Convert Table to Text

    In the Convert to Table to Text pop-up window - select Other radio button and type in a forward-slash "/" in the input box adjacent to the radio button (without the quotes).

    Click OK



    I need the macro to start when the user has selected the range of data they wish to copy 'n' paste. The macro will end after they click OK in the Convert to Table to Text pop-up window in MS Word.



    Any assistance would be greatly appreciated,

    Kind regards

    Chris
    Attached Files Attached Files
    Last edited by longbow007; 02-09-2010 at 11:18 PM.

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: Automate Data to Text sequence

    Why don't you try recording a macro (Tools --> Macro --> Record New Macro) while you perform those actions. It'll give you 90% of the answer. If then you're still stuck, come back and ask.

  3. #3
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Automate Data to Text sequence

    Hi, can some one please assist in modifying my macro so that I can:

    use Excel 2003 to automate the following sequence of events that I currently do manually?

    AutoFilter to filter the City in column B
    AutoFilter to filter the Rotation in column X
    AutoFilter to filter the Positional Status in column Y
    Hide columns B:W

    Use the computer mouse to select a range of that includes columns A, and X to AR (inclusive).

    Copy 'n' paste this selected range to worksheet: Data to Text at cell A1

    Insert a new column by selecting column A and right-clicking on the column and selecting Insert

    Populating the new column A starting at cell A1 with number 1 and autofilling down to the last record (1, 2, 3, 4, 5, etc...)

    Delete the folowing columns: C, D, E, G, J, L, M, N, P, Q R, S, T and V

    Copy 'n' paste the all the remaining data to a new documnet in MS Word 2003

    Select the entire table in MS Word

    From the MS Word file menu - Select Table - Convert Table to Text

    In the Convert to Table to Text pop-up window - select Other radio button and type in a forward-slash "/" in the input box adjacent to the radio button (without the quotes).

    Click OK
    I need the macro to selected whatever range is selected by the user.

    Lastly, I need to open a new document in MS Word to undertake the Table to Text Conversion.

    Any help and assistance is greatly appreciated.

    Kind regards,

    Chris




    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Automate Data to Text sequence

    Hello, could some one please help me on two pieces of coding?

    1.
    I need the macro to selected whatever range is selected by the user.
    and

    2.
    Lastly, I need to open a new document in MS Word to undertake the Table to Text Conversion.
    Any help is greatly appreciated.

    Kind regards

    Chris

+ 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