Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 386
Default Please help! Macros

Hi,

I've had a few unsuccesful attempts with this question, some solutions but
none that I can get to work yet.

I have four macros on two different excel sheets all controlling a value in
the same cell. On sheet 1 (which I call UP4 Données) I have two macros which
either add or subtract 1 from cell I38 every time the button is pushed. On
sheet 2 (called UP1 Production) I have another two macros which do the same
thing - they add and subtract 1 but this time from cell L6 (sheet 2
remember). I agree this seems a bit long winded and could be simpler but its
better I keep the multientry approach for the user.

I need a macro program which does the following operations

- I hit +1 five times and -1 twice on sheet 1. My stock, (cell I38 sheet UP4
Données), goes from 20 to 23.
- I then hit +1 ten times and -1 once on sheet UP1 Production. Cell L6 on
sheet 2 will show that I have entered a total of 9 times.
- Cell L6 will then update cell I38 on UP4 Données 1 from 23 to 32.
- Cell L6 sheet 2 will reset to zero and cell I38 UP1 Production will stay
at 32
until the next update arrives.
- On sheet 3 which we will call Register I would like to create an excel
table that will record which macro button was pushed along with the date and
time it was pushed, all on one long vertical list.

My last need is to have some means of the saving the entries - say 20
seconds after the last entry the file is resaved automatically. For
reference this is one quarter of the total work I need, once I have the above
formulas, macros etc I will repeat it four times, but it will be exactly the
same, just for different cells. I'm not sure if that changes anything, if it
does or its better to have one formula for all cells then that will have the
same operation applied then I can include those cells references.

I have attached the +1 macro i am using below for reference just to give an
idea of where I am starting from.

Is this too complicated for one macro?

Thanks for your help

Sub Production15()
With Sheet2 ' Changer to suit
If Range("L6").Value < "" Then ' Change L6 to suit
Range("L6").Value = Range("L6").Value + 1
End If
End With
End Sub

Thanks
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros in Personal.xls that would create two toolbars and buttonswith assigned macros Brian Day Excel Programming 1 March 29th 07 11:20 PM
choose default macros Not Enabled / Macros Enable Setting BEEJAY Excel Programming 2 June 30th 06 01:07 PM
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
Open workbook-macros enabled, opening another with macros George J Excel Programming 5 September 17th 04 02:07 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM


All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"