Hi all,
My first post so apologies in advance if I am not following any of the correct protocol in anyways.
I am working off a master sheet and coping a selection of rows based on filter into a template file.
Considering I am quite inexperienced with macros, I have managed to do fairly well using the Record button in EXcel. The code can do with some tidying up.
Master Spreadsheet contains
COL A Batch No
COL B Unique ID
COL C Account
COL D System
(There are a few columns in between but I do not need these for copying into template.)
COL L Type
COL M Location
COL N AccountDescription
COL O Owner Email
The template that I am copying to contains
Sheet 1 - General Information, How to complete the form in Sheet 2
Sheet contains:
COL A Unique ID
COL B Account
COL C System
COL D,E,F,G,H are a mixture of free text and drop downs that the user will have to fill in and are shaded yellow.
COL J Type
COL K Location
COL L Account Description.
Hope that helps you understand sheets I am working with.
- On the master I manually filter by OwnerEmail and assign a Batch No that helps me identify them. 1 owner could have anything from 1- 280 accounts.
Once filtered, I would copy / paste Col B,C,D from Master, Paste into Col ABC of Template
copy/past Col LMN into JKL.
Col A is copied into sheet as white text - this used for the naming of the file.
I have managed to get all that working with the Record, however as the number of rows copies varies from owner to owner, I have to manually tidy up COL D,E,F,G,H on template.
Ideally i would like your assistance to achieve 2 things - put in a macro code of some sorts that will recognise empty rows and delete, and where there is surrounding data in ABC, and JKL of template it will format the sheet with drop downs as above. This I think is probably quite easy to achieve, I just dont know how which is why i am here.
Secondly if there is way to tell the macro, for each batch id - run this macro. that will be amazing!
Also sorry I have been unable to post up real data as I am working with confidential data at work.
Thanks in advance
Bookmarks