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: 1
Default English to VBA translator needed


This is what im trying to get a macro to do if anyone can help put thi
into a VBA code it would be a big help to me.


Search Range A1:H1000 for any instances where there is a value i
column A and
adjacent cells in row B:H are blank cells.
When found set range from the cell in column A where the above criteri
were satisfied to the last cell in column H that has consecutive value
in it

(By this I mean that if there are say values in cells H3:H6 then cell
H7:H8 are blank and H9 has a value in it the macro would only selec
the range down to H6)

For this range that has been selected only copy rows within this rang
if they have a "Y" Value in column "I"

Now paste this into Sheet 2
Ensuring that there is a blank row above and below the group of dat
being pasted

eg,

BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW

Repeat this until the macro has gone down to row 1000

So in sheet two you would get your selected tables looking like this


BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW
BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW
BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW

In Sheet 2 Search Column A for any instances of the Word "Total" whe
found cut that row and paste it at the bottom of the table list so th
macro would look for the first 3 consecutive blank rows and when i
finds them it pastes any row with the word "total" in them one ro
after another.

So the when finished sheet 2 will look like this

BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW
BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW
BLANK ROW
XXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXX <-------DATA
XXXXXXXXXXXXXXXXXXX
BLANK ROW
BLANK ROW
BLANK ROW
TOTALXXXXXXXXXXXXXX
TOTALXXXXXXXXXXXXXX
TOTALXXXXXXXXXXXXXX<-------TOTAL DATA
TOTALXXXXXXXXXXXXXX
TOTALXXXXXXXXXXXXX

--
Vlad99
-----------------------------------------------------------------------
Vlad999's Profile: http://www.excelforum.com/member.php...fo&userid=3358
View this thread: http://www.excelforum.com/showthread.php?threadid=53366

 
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
Formula translator Excel AppleWood Excel Worksheet Functions 0 September 8th 11 02:36 PM
Using english and non-English Excel commands simultaneously in anon-English installation Michael.Tarnowski Excel Worksheet Functions 6 March 12th 10 07:21 AM
Translate any english number into English word SANTANU Excel Discussion (Misc queries) 2 March 4th 10 04:42 PM
converting a number to English text ( not to Baht) is needed Chandana Geeganage Excel Worksheet Functions 1 September 9th 05 04:06 PM
Command Translator M. Onat Ozdemiroglu Excel Programming 2 July 21st 04 02:08 PM


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

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

About Us

"It's about Microsoft Excel"