LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default I have a challenge for all you VBA experts out there!

I would NOT move the data around.

Assuming you have headers containing Valuation Type, Movements, etc, in your
VBA code you can locate the columns using MATCH

ValCol = Application.Match("Valuation Type"),Sheet1.Rows(1), 0)
MovCol = Application.Match("Movements"),Sheet1.Rows(1), 0)

etc.

Let's say that you have assumed that Movements is in column 6, and you
hard-coded the column number in the line that retrieves that value. Change
your code to

Cells(R, MovCol).Value


On Thu, 16 Sep 2004 12:19:05 -0700, "havocdragon"
wrote:

Ok so I have created this calculator (over the span of a few weeks) which
calculates inventory movements out of a program called SAP. Basically you
copy info out of SAP and paste it to my calculator. And so far the calculator
has saved ALOT of time. I have a few macros on it already, just to append a
few things and clean some stuff up, however the next step I wan't to take I
believe, is beyond my abilities with VBA right now. Heres what I want to do;

not everyone using this calculator has the same columns in SAP as I do,
however there are 3 fields that are used in the calculator, that everyone
does have. these fields are 'Valuation type' 'Movements' and 'Quantities'.
Now in everyones sap these colums can be arranged differently, so what I need
is, a macro that once these items are pasted, to arrange them correcltly,
because I dont think I can write a macro that does all the caclculations on
this sheet! Obviously the columns my formulas are in cannot find where they
need to calculate, it needs to be in a specific space. So anyone know where
to start on that? Let me know if you need more info, which im sure you will

=)

 
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
ALL EXPERTS ........... WHERE ARE YOU ?? YESHWANT Excel Discussion (Misc queries) 5 August 29th 09 07:47 PM
Challenge experts will LOVE!!, Can you get the formula?? Drummy Excel Discussion (Misc queries) 0 May 25th 06 07:17 AM
for the experts Herman Excel Discussion (Misc queries) 2 October 28th 05 11:59 PM
again for the experts Herman Excel Discussion (Misc queries) 0 October 28th 05 04:13 PM
Help - Need experts help! rvnwdr Excel Discussion (Misc queries) 7 June 22nd 05 02:12 PM


All times are GMT +1. The time now is 06:08 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"