Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
beb beb is offline
external usenet poster
 
Posts: 6
Default HELP!! can't write necessary macro...


I am trying to write a macro for my database in excel, however, i see it
needs better VB knowledge than mine, which is beginner in fact.

The details a

Three seperate sheets in a workbook, in each sheet there are 4 columns
(A1:A4) and over 5000 rows. an example is:
this is order receipts sheet

Shop Prod. Amount Rec. Date
KES Winx 20000 14.07.05
SA T&J 4998 05.07.05
KIR Batman 15000 11.06.05
OF Concept 40000 01.08.05

this is shipments sheet

Shop Prod. Amount Ship. Date
KES Winx 15000 15.08.05
KIR Batman 12000 13.06.05
SA T&J 5000 09.07.05
OF Concept 40000 09.08.05

now, in the third sheet i want to see the left-over orders and the time
between rec. and prod. date. The problem is, i cannot do this... can
anyone give me some clues???

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default HELP!! can't write necessary macro...

Hi, Beb,

Just a thought, but wouldn't it be easier to have everything on one
worksheet, with an additional column containing formulae to subtract
shipments from receipts in it, giving a balance? You could hide and unhide
any columns to produce various reports etc.

I don't like coding when i don't have to! :-)

Pete


"beb" wrote:


I am trying to write a macro for my database in excel, however, i see it
needs better VB knowledge than mine, which is beginner in fact.

The details a

Three seperate sheets in a workbook, in each sheet there are 4 columns
(A1:A4) and over 5000 rows. an example is:
this is order receipts sheet

Shop Prod. Amount Rec. Date
KES Winx 20000 14.07.05
SA T&J 4998 05.07.05
KIR Batman 15000 11.06.05
OF Concept 40000 01.08.05

this is shipments sheet

Shop Prod. Amount Ship. Date
KES Winx 15000 15.08.05
KIR Batman 12000 13.06.05
SA T&J 5000 09.07.05
OF Concept 40000 09.08.05

now, in the third sheet i want to see the left-over orders and the time
between rec. and prod. date. The problem is, i cannot do this... can
anyone give me some clues???

*** Sent via Developersdex http://www.developersdex.com ***

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,081
Default HELP!! can't write necessary macro...

You can extract the left-over orders by using MS Query, through the Data menu:

Data-Import External Data...-New Database query

The advantage to this is that you can refresh the data periodically simply
by right-clicking in the results and choosing 'Refresh Data'



"beb" wrote:


I am trying to write a macro for my database in excel, however, i see it
needs better VB knowledge than mine, which is beginner in fact.

The details a

Three seperate sheets in a workbook, in each sheet there are 4 columns
(A1:A4) and over 5000 rows. an example is:
this is order receipts sheet

Shop Prod. Amount Rec. Date
KES Winx 20000 14.07.05
SA T&J 4998 05.07.05
KIR Batman 15000 11.06.05
OF Concept 40000 01.08.05

this is shipments sheet

Shop Prod. Amount Ship. Date
KES Winx 15000 15.08.05
KIR Batman 12000 13.06.05
SA T&J 5000 09.07.05
OF Concept 40000 09.08.05

now, in the third sheet i want to see the left-over orders and the time
between rec. and prod. date. The problem is, i cannot do this... can
anyone give me some clues???

*** Sent via Developersdex http://www.developersdex.com ***

  #4   Report Post  
Posted to microsoft.public.excel.programming
beb beb is offline
external usenet poster
 
Posts: 6
Default HELP!! can't write necessary macro...

well, here i included only part of a dbase to give example, thus,
actually, my database is much larger and steadily growing, hence, i
guess, same sheet theory does not apply to real situation...

thanx anyway..

*** Sent via Developersdex http://www.developersdex.com ***
  #5   Report Post  
Posted to microsoft.public.excel.programming
beb beb is offline
external usenet poster
 
Posts: 6
Default HELP!! can't write necessary macro...



thanx, i'll try...

*** Sent via Developersdex http://www.developersdex.com ***
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
I am trying to write a macro using If...Then AJ Excel Discussion (Misc queries) 1 March 22nd 10 03:12 PM
How to write a macro JStiehl Excel Discussion (Misc queries) 4 August 11th 08 10:08 PM
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? Daniel Excel Worksheet Functions 1 June 23rd 05 11:38 PM
Q: how can I write this macro? JIM.H. Excel Discussion (Misc queries) 6 May 30th 05 11:47 PM
How do I write a macro for... Christopher Anderson Excel Discussion (Misc queries) 1 December 20th 04 05:18 PM


All times are GMT +1. The time now is 06:07 PM.

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"