+ Reply to Thread
Results 1 to 3 of 3

Auto Formatting with VBA

  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    Alabama
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Question Auto Formatting with VBA

    Good Afternoon,

    I'm fairly new to VBA, but can get myself through some things. The task that I have at hand seems to be getting the better of me. I have a software that balloons blueprints and we use the software at my employer, the software has "tokens" that excel recognizes and formats/fills the cells with the appropriate information from the application. The pictures below will illustrate my problem more. Is there a way I could write some script in VBA to where, when the information is exported from my application to excel using the template I have, will it automatically format? If I am not making much sense, I do apologize, it's harder to explain without working with it. First pic is my template that the software uses to export the data. Second pic is what the data looks like once it's exported using said template, and third pic is what it looks like after I format it to our standards. (which is what I'm trying to get automated, so we're getting away from human error and speeding up our process)
    The range varies on each tab in the workbook, so I cant do a simple:
    Sub copy_paste()
    range.("F9:N9").copy("F18:N18")
    End Sub

    I'm not expecting anyone to write my code for me, I'm simply asking is this possible and if so, what direction should I go? Thank you in advance and I'm glad to be a new member here!

    excelproblem1.png
    excelproblem2.png
    excelproblem3.JPG

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Auto Formatting with VBA

    Are you saying that the Excel workbook template contains links back to the software application or that you import the data via a csv or .txt file?

    We really need to see the file you start with and the final Excel workbook after the start file data has been processed.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-28-2018
    Location
    Alabama
    MS-Off Ver
    365 ProPlus
    Posts
    2

    Re: Auto Formatting with VBA

    I'll show as much as I can, legally. First picture is a snip it of a blueprint we have ballooned. Attachment 600151
    We use the application to take a blueprint, balloon it and dimension it out accordingly. Second picture is how it is listed/dimensioned in the software. Attachment 600152
    Third picture is the template with the "tokens", for example, token "${op_cn}" stands for operation characteristic number. Attachment 600154
    That specific token fetches the characteristic number from the software when exported. Here is what I mean when I say "exported", Attachment 600155
    The application takes the excel template with tokens, and once exported, produces this. excelproblem7.JPG
    What I am trying to accomplish is once the file is exported, excel only automatically produces new rows for cells with a "token" in it. I want to automatically have excel format it where my employees don't manually have to do it themselves.
    I understand this could be a big task and my not be doable, but I appreciate any and all help. I'm only allowed to upload 5 pictures or i would have given more detail.

    Thank you once again!

+ 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. CSV auto-formatting
    By Loonytoons in forum Excel General
    Replies: 1
    Last Post: 02-15-2015, 12:42 PM
  2. Auto Formatting Macro
    By Dubby20 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2012, 12:09 PM
  3. auto formatting
    By SquidgetGuy in forum Excel General
    Replies: 0
    Last Post: 07-13-2011, 07:20 AM
  4. Excel 2007 : Auto Formatting a Row
    By IMagius in forum Excel General
    Replies: 2
    Last Post: 02-24-2011, 09:34 AM
  5. Auto-Formatting?
    By AHARK in forum Excel General
    Replies: 0
    Last Post: 10-20-2010, 09:56 AM
  6. Auto Formatting
    By Armidion in forum Excel General
    Replies: 2
    Last Post: 08-26-2010, 11:49 AM
  7. Auto formatting
    By Jake Bailey in forum Excel General
    Replies: 2
    Last Post: 02-07-2005, 08:06 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