+ Reply to Thread
Results 1 to 4 of 4

GG Sheets Macros

  1. #1
    Registered User
    Join Date
    08-08-2022
    Location
    Boston, MA
    MS-Off Ver
    Google Sheets
    Posts
    2

    GG Sheets Macros

    Hello. First time here. I'm having issues with a GG Sheets Macro I'm working on. Essentially, the macro consist of taking information entered on Tab A and pasting/saving it onto Tab B. However, any new information I'm entering is overwriting old entries, so the Macro is not skipping a pre-filled row as it should be. Any ideas on what action I missed during the Macros process or a line of code/script that I could use so when saving new information the macros jumps on the next blank row? Thanks!

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: GG Sheets Macros

    Hi CSolis,

    A macro is just a simple type of Apps Script, and it is designed to replicate a repetitive procedure. For anything more complex will require a properly written Apps script that is designed for the task.

    Is there anything in your macro about "getLastRow" ?
    If not, that right there is the main part of your problem.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    08-08-2022
    Location
    Boston, MA
    MS-Off Ver
    Google Sheets
    Posts
    2

    Re: GG Sheets Macros

    There's no "getLastRow" and that's the issue I'm dealing with. To be honest. I'm not sure how to go from there I've been looking around and can't seem to find anything related to the subject or similar tot he same issue I'm facing.

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: GG Sheets Macros

    Developing a suitable apps script will require complete understanding of the source data structure:

    * whether there are formulas, or dropdowns that can interfere with finding the last row, and in which columns they are located in (workarounds include using arrayformulas wherever possible, and where dropdowns are filling a column it requires looking for the last row on another specific column that has complete data without blank cells, like an entry ID, etc)
    * if there is capacity to add a new column to mark when something has been appended (so that the source data isn't duplicated in successive runs of the script)
    * etc.

+ 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. [SOLVED] One Macros for Many Sheets
    By cyliyu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-22-2020, 11:54 PM
  2. Help With Protection For Sheets Using Macros
    By rahul_ferns76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-07-2017, 08:33 PM
  3. [SOLVED] Macros in different sheets
    By JulijaKT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2016, 06:59 AM
  4. How to use MACROS from different sheets
    By gs30 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-20-2009, 08:10 PM
  5. hiding sheets but still letting macros run when printing hidden sheets
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 11-13-2008, 04:35 AM
  6. Macros with Hidden Sheets
    By Alexander_Read in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-22-2008, 01:06 PM
  7. Hidden sheets and macros
    By mwc0914 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2006, 12: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