Results 1 to 3 of 3

Dynamic Macro

Threaded View

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    Dallas, TX
    MS-Off Ver
    2010
    Posts
    2

    Dynamic Macro

    Good evening. This is my first time posting in a forum so I hope I am doing this correctly.

    I'm setting up a workbook that will have a new tab added to it every month exported from SalesForce.com and will have a different tab name each time. I have solved for that I think using Sheets(Sheets.Count). One of the things I need to do with this macro is look at the previous tab to compare for certain types of changes. The code I currently have forces me to choose the location of my file that I already have open only to ultimately have me pick the sheet I need, i.e. previous sheet.....kind of frustrating. I want the code to get it itself. I know Set ws = Sheets(Sheets.Count-1) will get it because I can take that and follow it with Msgbox ws.Name and it will give me the name of the tab. The other thing is the amount of data populated in the tab and number of changes can vary so I can't have ranges "hard-coded" or I would obviously miss something or grab too much. Anyhow, I started by simply recording the macro and some changes but am not quite there. I've seen things here before that have helped in the past but cannot find anything directly related to what I am trying to do here. I have not set the buttons yet until code works the way I describe. I am hopeful someone can help with at least one of the macros then I can adapt the solution to the other 2. Any help/guidance is greatly appreciated. I have attached the workbook I am working with so you can see what I have so far.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Dynamic macro
    By a94andwi in forum Excel General
    Replies: 11
    Last Post: 07-18-2014, 07:07 AM
  2. getting macro dynamic
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-04-2013, 07:55 AM
  3. More dynamic macro...
    By belkira in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2009, 03:26 AM
  4. Dynamic Macro
    By Rgaherty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2008, 07:21 PM
  5. Dynamic Macro's
    By Myrlin1 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-07-2007, 10:00 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