+ Reply to Thread
Results 1 to 3 of 3

How to update a xlsx sheet from another macro enabled sheet

  1. #1
    Registered User
    Join Date
    10-20-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2019
    Posts
    4

    How to update a xlsx sheet from another macro enabled sheet

    I have a excel sheet which is shared through Google drive and used by google sheet.
    When using the sheet as a standard xlsx sheet it is ok, but when I enable macros the sheet goes nuts.
    All the sheets created by excel are moved to new sheets and only google sheet can be used.😢

    Therefore I need to have all my macroes in another sheet which can update the xlsx sheet or find another way te ensure that sheets does not change.
    i have attached a sample of the sheet but does not really work because of the google change

    '
    How am I supposed to do so?

    Thanks in advance
    Attached Files Attached Files
    Last edited by McJams; 01-20-2021 at 05:45 AM. Reason: missing line
    Thanks a lot
    /Mcjams

  2. #2
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: How to update a xlsx sheet from another macro enabled sheet

    As far as I know VBA doesn't work in Google Sheets and usually in online Excel applications.

    The only solution I can think of is to export the modules to a folder before saving the file as XLSX, then import them back when when saving the file back on the computer to work on it.

    There is an Import-Export code proposed by Ron de Bruin in here:
    https://www.rondebruin.nl/win/s9/win002.htm

    I hope it helps.
    To show your appreciation
    Click ★ Add reputation!

  3. #3
    Registered User
    Join Date
    10-20-2020
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2019
    Posts
    4

    Re: How to update a xlsx sheet from another macro enabled sheet

    Hi Mrrr

    Thank you for replying ro my issue.
    I was not aware that Google changed the sheetname when sharing the workbook when macro are enabled.
    I can see that I am able to share the workbook as a *.xlsx and then no change are made for the codename and sheetname.

    What I would like to do is:
    Have a workbook with all the scripts and macros, run it from the local workbook which update the *.xlsx project that are shared. I hope this should leave the shared project file as a .xlsx and google will not change sheets name.

    I will of course try your solution to see if it will work.

    Otherwise I might have to develope the workbook with javacode but prefer to use VBA

    Thanks.
    Last edited by McJams; 01-21-2021 at 02:46 AM. Reason: incorret word used

+ 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. How to update a xlsx sheet from another macro enabled sheet
    By McJams in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 01-18-2021, 11:10 AM
  2. How to update a xlsx sheet from another macro enabled sheet
    By McJams in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 01-18-2021, 11:10 AM
  3. [SOLVED] convert macro enabled file to xlsx in CDO code block
    By Effexus3 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-22-2019, 09:45 PM
  4. [SOLVED] Can VBA Export a Sheet to a Non-Macro Enabled File?
    By dhunton in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-31-2016, 10:48 PM
  5. [SOLVED] Macro updating after selecting another sheet and back to Macro enabled sheet?
    By Imran Magsi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-29-2016, 04:38 AM
  6. Excel Macro Enabled Template - Saves as .XLSX by default
    By ddarko77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2013, 04:16 PM
  7. Sharing macro enabled excel sheet
    By arunbjaidev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2013, 03:53 AM

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