Search : in
By :

Help with Excel VB-Run macro by condition

Last answer on Jun 8, 2009 11:17:26 pm BST pla, on Nov 12, 2008 2:47:03 pm GMT 
 Report this message to moderators

Hello,I am defenetly not proffesional with VB!!!At the moment i am dealing with Excel 2003 for calculating a simple table of a small store.Finaly it comes that i NEED to record the last 20 dates of outgoing stuff.Up to me should look like this:
Worksheets("Sheet1").Activate
If ("G12") = True Then
Range("I12:I22").Select
Selection.Cut Destination:=Range("I13:I23")
Range("H12").Select
Selection.Cut Destination:=Range("I12")
Range("I12").Select
End If

In the end i need to move the whole list of 20 dates 1 row down and to place the new date in the top cell wich remein empty after the moving.Sounds simple and maybe you will lought but my head exploaded of this.
I will appriciate ANY helpfull advices and please excuse my english...I am from Bulgaria and i am verry tired.
Thanks in advance and GOOD LUCK!

Configuration: Windows XP
Firefox 2.0.0.17

Best answers for « help with Excel VB Run macro by condition » in :
Colouring cells on conditions ShowColouring cells on conditions There are many pratical functions under Excel which is not commonly used. Example: If you wish a cell automatically turns red (or other formatting border, frame etc) under one condition: a result, a...
[VBA: VB6] Using excel from another application Show[VBA: VB6] Using excel from another application Here is a little routine to call Excel from VB6 or another Office application. Paste in a general module (eg Module1) In VBA>> Insert>> Module and paste in the window ... In VB6>>...
Avoid duplicates in Excel ShowAvoid duplicates in Excel In order to avoid duplication when encoding in a column from an excel sheet: take the conditional format on the first cell under the headings (eg A2) choose the following formula:...
Spreadsheets - Conditional expressions ShowWhat is a Conditional Structure? Conditional structures are instructions that allow to test if a condition is true or not. Conditional structures may be associated together. To successfully execute these tests using logical functions, spreadsheets...

3

Erica, on Dec 30, 2008 5:54:13 pm GMT
  • +8

It sounds to me like the easiest way to resolve this is just to add a new row at the top, and then check to make sure that all formulas conditional to the data include the new row.

Hope this helps,

Erica

Reply to Erica

4

Raj, on Jan 16, 2009 4:53:10 am GMT
  • +3

You rock my babie

Reply to Raj

5

kean, on Jan 29, 2009 2:35:07 pm GMT
  • +10

If you got any download material for "Creating a Macro in MS Excel Using MS Visual Basic",
Could you please send it across? It would be really helpful for me.

Reply to kean

6

 giz, on Jun 8, 2009 11:17:26 pm BST
  • +3

Google "Creating a Macro in MS Excel Using MS Visual Basic", its amazinf what you will find!

Reply to giz