Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Simple Macro

I get a cleared checks file from the bank every day

The length of the file is constant. The number of rows might change
depending on the number of checks cleared but the columns remain constant

I want to get certain data out of the file every day -basically the check no
and the amount from the file using a macro and put it in the adjacent
columns e.g. Coolum B and C

Eg the file I get is below

00031901000013500000986010000018278091007
00031901000013500000986080000025185090407

I want to create a macro that will take out the check no ( position 20 to
26) and the amount and put in a decimal place ( position 27 to 32 then put
decimal place
and then position 33 to 34)

E.g. in the file above I would want the macro to
Colum A
( File from bank copied into Colum A)
Coloum B Coloum C
00031901000013500000986010000018278091007 098601 00000182.80
00031901000013500000986080000025185090407 098608 00000251.85



As I am a novice I would really appreciate your help on this.

Thanks

Sam

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Simple Macro

Check your other post.

Sam Commar wrote:

I get a cleared checks file from the bank every day

The length of the file is constant. The number of rows might change
depending on the number of checks cleared but the columns remain constant

I want to get certain data out of the file every day -basically the check no
and the amount from the file using a macro and put it in the adjacent
columns e.g. Coolum B and C

Eg the file I get is below

00031901000013500000986010000018278091007
00031901000013500000986080000025185090407

I want to create a macro that will take out the check no ( position 20 to
26) and the amount and put in a decimal place ( position 27 to 32 then put
decimal place
and then position 33 to 34)

E.g. in the file above I would want the macro to
Colum A
( File from bank copied into Colum A)
Coloum B Coloum C
00031901000013500000986010000018278091007 098601 00000182.80
00031901000013500000986080000025185090407 098608 00000251.85

As I am a novice I would really appreciate your help on this.

Thanks

Sam


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Simple Macro

Hi
A couple of worksheet formulas will do it
with the long number in cell A2

=MID(A2,20,6)

will pick out the check number
and
=MID(A2,26,8)&"."&MID(A2,34,2)

the other number. Your description and output numbers are not quite
the same, but i think this is what you want.
regards
Paul
On Apr 15, 1:54*pm, "Sam Commar" wrote:
I get a cleared checks file from the bank every day

The length of the file is constant. The number of rows might change
depending on the number of checks cleared but the columns remain constant

I want to get certain data out of the file every day -basically the check no
and the amount from the file using a macro and put it in the adjacent
columns e.g. Coolum B and C

Eg the file I get is below

00031901000013500000986010000018278091007
00031901000013500000986080000025185090407

I want to create a macro that will take out the *check no ( position 20 to
26) and the amount and put in a decimal place ( position 27 to 32 then put
decimal place
and then position 33 to 34)

E.g. in the file above I would want the macro to
Colum A
( File from bank copied into Colum A)
Coloum B * * * Coloum C
00031901000013500000986010000018278091007 * * 098601 * * * * 00000182.80
00031901000013500000986080000025185090407 * * 098608 * * * * 00000251.85

As I am a novice I would really appreciate your help on this.

Thanks

Sam


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
Very Simple Macro Robert_NSBG Excel Discussion (Misc queries) 2 December 5th 08 03:10 PM
Simple Macro? Tatebana Excel Programming 5 March 29th 07 11:46 PM
Simple Macro - I think missk Excel Programming 2 March 9th 06 06:40 AM
Need help with simple macro garlnnd Excel Programming 4 October 5th 05 07:22 PM
Simple Macro IMO Pitbull Excel Programming 2 October 30th 04 01:20 AM


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