Automatically updating an agenda

ellimist14

New Member
Joined
Dec 21, 2017
Messages
3
Okay so first of all I know this is a needlessly complicated solution. But my boss is a little demanding and wants what he wants.

Anyway we have a weekly executive meeting and each member of senior management brings an agenda. Each agenda has old business (we'll call OB) and new business (NB) on it. I have to figure out a way to write a macro that updates last week's agenda automatically so he can inoutthis week's new business.

So last week's NB gets moved to this week's OB, but it can't replace last week's OB, it just needs to add to it. I hope my question makes sense, if it doesn't I can clarify if needed.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
My main problem is that I have to keep the old data. I know how to write a macros to copy certain cells and paste to other certin cells. But what I need is copy from certain cells then paste at the bottom of the document, wherever it may be.
 
Upvote 0
This is a simple string concatenation issue

Code:
public sub UpdateInfo()
   Dim oldData as string
   Dim newData as string

   oldData = Sheets("mySheet").Range("B5").Value 'copy the old Data
   newData = Sheets("mySheet").Range("C5").Value 'copy the new Data

   oldData  = oldData & vbCrLf & newData 'concatenate the old and new data, starting on a new line with the new data  
   Sheets("mySheet").Range("B5").Value = oldData 'write the concatenated data back to the cell
end sub

Then you might need to clear the contents of the new business cell depending on your needs---ie, you clear the cell so that its blank so they can enter in business for the next week.

You can also run this code over a range/loop to however many rows of data you have
 
Last edited:
Upvote 0
Agenda items usually generate one or more actions with target completion dates. So one agenda item is always progress of actions. Each meeting will generate more actions, and close out some old actions. The action list thus drives the meeting. Agreed actions are merely added to the list. Conditional formatting can apply red, orange and green coloring to the actions to make things more visible. A dynamic pie chart with red , orange and green segments provides an executive summary. Another pie chart can have open actions that are "on time", "close to overdue" and "overdue"...... Separate pie charts for different "departments" may be useful too. Happy to assist with this, but your post 1 is unclear, you can't have different agendas, but each senior manager can put items on the agenda.
 
Upvote 0
This is a simple string concatenation issue

Code:
public sub UpdateInfo()
   Dim oldData as string
   Dim newData as string

   oldData = Sheets("mySheet").Range("B5").Value 'copy the old Data
   newData = Sheets("mySheet").Range("C5").Value 'copy the new Data

   oldData  = oldData & vbCrLf & newData 'concatenate the old and new data, starting on a new line with the new data  
   Sheets("mySheet").Range("B5").Value = oldData 'write the concatenated data back to the cell
end sub





Then you might need to clear the contents of the new business cell depending on your needs---ie, you clear the cell so that its blank so they can enter in business for the next week.

You can also run this code over a range/loop to however many rows of data you have



It gave me an error.

Compile error:

Invalid outside procedure

Sorry. I really don't know VB at all but I do understand computer logic pretty well.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top