+ Reply to Thread
Results 1 to 6 of 6

Macro manipulating cells on other workbooks, help needed!

  1. #1
    Registered User
    Join Date
    09-02-2016
    Location
    Lithuania
    MS-Off Ver
    2010
    Posts
    3

    Macro manipulating cells on other workbooks, help needed!

    Hello,

    I currently use this script:

    Please Login or Register  to view this content.
    What it does, is read a couple of cells for a text and a number and then adjusts the selected cells by said number and adds the text to a comment on all of the selected cells (works with a single or multiple selected cells)

    What i need this script to do is: write the same comment and modify the cells value on another workbook, on the same coordinates, but one cell below.

    I have been working on this for a couple of days now, but i just cant find a working solution, since my knowledge of VBA is so limited.

    Any help will be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro manipulating cells on other workbooks, help needed!

    Would look something like:

    Please Login or Register  to view this content.
    I'm interested in starting a career working with VBA, if anyone knows of any opportunities!

  3. #3
    Registered User
    Join Date
    09-02-2016
    Location
    Lithuania
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro manipulating cells on other workbooks, help needed!

    Thank you very much walruseggman. I used your solution and it works great.

    But now, i noticed that a couple of workbooks that I overlooked have the line that needs to be edited on another row. The column still stays the same as the selection in the original workbook, but the row number is different.

    I found that the row on which i would need to edit the selected cells always starts with a cell that has the same word on all workbooks. Is there a way to make the script find a word "ExampleWord" and set the row for the cells which would be edited by my script?

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro manipulating cells on other workbooks, help needed!

    Would the column remain the same as rCell's column?

  5. #5
    Registered User
    Join Date
    09-02-2016
    Location
    Lithuania
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro manipulating cells on other workbooks, help needed!

    Well yes. This macro is used like this:

    A user selects a couple of variables from dropdown menus and highlights the cells he wants to modify. Then the macro cycles through the selected cells and increses their value by Num as well as adds a comment. Then, on another workbook the same must happen on the row which starts with "exampleword".

    On workbooks that have the needed to edit cells on a different row the selection column would stay the same. Only the row differs and the needed row always has the same word in a cell that is somewhere in column A. The word is unique in every workbook and there is no chance of it being duplicated, so a simple method to find the word and use its row for the rCell would be sensible. I just fail to figure out how to achieve this on my own.

    TLDR - Yes.

  6. #6
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Macro manipulating cells on other workbooks, help needed!

    Please Login or Register  to view this content.

+ 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. Help Needed With Manipulating Embedded Chart
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2015, 05:34 AM
  2. Importing and manipulating data between workbooks automatically
    By Richie_m21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 04:23 PM
  3. [SOLVED] Importing and manipulating data between workbooks automatically
    By Richie_m21 in forum Excel General
    Replies: 3
    Last Post: 10-28-2014, 01:20 AM
  4. Macro Needed for Manipulating data.
    By hunnja in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2014, 01:39 PM
  5. Macro needed for multiple workbooks
    By Shaune Grobler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 09:46 AM
  6. Macro for Moving, Combining, and Manipulating Data Cells
    By RogerDunham in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2011, 05:37 PM
  7. Help needed with macro/formula linking two workbooks
    By dcleave in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2005, 10:58 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