+ Reply to Thread
Results 1 to 18 of 18

Help creating quick macro - thanks!

  1. #1
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Help creating quick macro - thanks!

    Hi,

    I think this should be relatively simple.

    I'm trying to automate the process of inputting a certain cell into another cell to the left of a cell. I know that doesn't seem to make sense - but in the attached file, I'm trying to put the County name for each county into the cell to the left of "Total Funded Loan Value" - for example, in cell A13, but for the entire spreadsheet. Is this possible? Thanks so much!!!snlworkbook 1.0.xls

  2. #2
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Help creating quick macro - thanks!

    This should do it:

    Please Login or Register  to view this content.
    Want to show appreciation for the help you received from a member? Give them reps by clicking the bottom left of their post!

  3. #3
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Thanks for the quick reply. Could you walk me through where to put that in? Please excuse my ignorance.

    Thank you SO much.

  4. #4
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Help creating quick macro - thanks!

    Adding VBA to a workbook (make sure macros are enabled! - should be saved as either XLSM or XLSB):

    1. Copy the sample code that you want to use
    2. Open the workbook in which you want to add the code
    3. Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    4. Choose Insert | Module
    5. Where the cursor is flashing, choose Edit | Paste
    6. To run code, either press the play button while your cursor is within that macro, or insert shape/button on worksheet and assign macro to it by right clicking on the shape/button and clicking "Assign Macro"

    I've attached a workbook with a button that runs your code for you.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Thanks so much! This forum is awesome.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Help creating quick macro - thanks!

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  7. #7
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Help creating quick macro - thanks!

    Quote Originally Posted by Mumps1 View Post
    Try:
    Please Login or Register  to view this content.
    Nice Mumps, clever. Why did you Dim City and foundCell?

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Help creating quick macro - thanks!

    @Obsessed. Thank you for the feedback. Actually, I was a little sloppy in cleaning up the code after trying different approaches. Those two "Dim" lines of code can be deleted. Thanks for picking up on that.

    @skipper24: Please delete those 2 lines of code.

  9. #9
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Hey guys, thanks so much for that again. I actually need a little bit more help (hopefully soon I'll learn this myself and will definitely give back on here )

    Basically I need to do the same thing on all of the attached files - will those macros work on these as well? - snlworkbook (4).xlssnlworkbook (5).xlssnlworkbook (6).xlssnlworkbook (7).xls

    Thank you so much
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Also, for this file - snlworkbook v2 rg.xlsm - if you see what I've done so far in Sheet2 tab, I need to do that for all of them. Is that possible with a Macro?

    I really owe you guys.

  11. #11
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Help creating quick macro - thanks!

    Should for 4 & 5, but not 6 & 7. Those have different wording...in fact, the wording you provided as the trigger to write the city next to it isn't in those last two books.

  12. #12
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Help creating quick macro - thanks!

    Quote Originally Posted by skipper24 View Post
    Also, for this file - Attachment 428970 - if you see what I've done so far in Sheet2 tab, I need to do that for all of them. Is that possible with a Macro?

    I really owe you guys.
    You could...formulas are easier probably. Something like this was done in less than two minutes:
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    I'm not sure if this is allowed on here, but I'll venmo/paypal/etc one of you like $5 (or something) if you would be willing to do the same thing - totals in another sheet - for each of those files. Greatly appreciated.

  14. #14
    Forum Contributor Obsessed's Avatar
    Join Date
    05-22-2013
    Location
    Cincinnati, Ohio
    MS-Off Ver
    Excel 365
    Posts
    215

    Re: Help creating quick macro - thanks!

    No need to pay. Just pay it forward to other forum members when you get the hang of it. That's what I did...I'm still learning a lot every day.

    So you want a macro solution for the totals, that I did with formulas above? Do you need help with sheets 6 and 7? Those are a different format.

  15. #15
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Definitely will.

    The formula worked just fine, no need for a macro if that's over-complicating it.

    I'll get back to you re: 6&7, looking those over now.

  16. #16
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Definitely will.

    The formula worked just fine, no need for a macro if that's over-complicating it.

    I'll get back to you re: 6&7, looking those over now.
    Last edited by skipper24; 11-06-2015 at 04:27 PM.

  17. #17
    Registered User
    Join Date
    11-06-2015
    Location
    New York
    MS-Off Ver
    2013
    Posts
    9

    Re: Help creating quick macro - thanks!

    Obsessed - here is the attachment I referenced.

    snlworkbook (5) -complete.xlsm

  18. #18
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,932

    Re: Help creating quick macro - thanks!

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. quick sort macro
    By LMHmedchem in forum Excel General
    Replies: 9
    Last Post: 03-26-2014, 05:26 PM
  2. Array/Index/Match/small formulas- creating a quick search
    By lreed in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-25-2014, 06:06 PM
  3. [SOLVED] Quick Access Toolbar - 12 commands on mine but want 3 in workbook I'm creating for others
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-31-2013, 11:54 PM
  4. [SOLVED] Quick question about automatic row deletion (should be very quick and easy!!)
    By poptart141 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2013, 12:56 PM
  5. Quick/Easy (hopefully) macro question
    By CDiddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2007, 04:57 PM
  6. Need Quick Macro Help!
    By bxc2739 in forum Excel General
    Replies: 2
    Last Post: 04-24-2006, 03:32 PM
  7. Quick question - quick answer about assigning shortcut keys
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2005, 06:05 AM
  8. quick lil macro
    By ChasePenelli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2005, 08:05 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