Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

WON'T YOU JOIN US?
You are not a registered member and
are viewing this site as a guest.
Registration is simple and FREE.
Join this CrowdGather community today.
Registration offers the following perks:

» Less advertising throughout
» Post and participate in discussions
» Network with other forum members
» Free private messaging

join

Reply
 
Thread Tools Display Modes
Old October 5th, 2003, 04:55   #1
Proto
Knowledge is the solution
 
Proto's Avatar
 
Join Date: Dec 2002
Location: Pittsburgh, US. Previously in Mexico City
Posts: 7,160
question with macros

I dont have experience with macros so i would like to know if someone can give me a hint for this thing I want to do in excel

When passing a pseudo-world table to excel (pseudo because its not really a table, its just arranged in the form of a table) some of the colums get defasated, meaning that they move some cells to the right, but the rows stay ok. For example, some of the data from column a ended up in column b, however they wouldnt overlap if i merged the columns.

My question is, how can i make a macro that merges the columns, or more generally, that moves cells
__________________
Proto is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old October 6th, 2003, 03:28   #2
ebola
Registered User
 
ebola's Avatar
 
Join Date: Jun 2001
Location: Chanhassen, MN
Posts: 900
Re: question with macros

use the macro record/playback

tools->record new macro

not sure what your looking to do?

I uploaded an example you have to have the cursor on the top "hello" cell because its recorded as relative. Just click the go button and it will move the cells

a
1 hello
2 move
3 hello
4 move
5 hello
6 move

now look like this

a b
1 hello move
2 hello move
3 hello move



this is pretty easy to do.
1. record a new macro.
2. select relative.
3. select the cell with "hello" in it
4. hit the down arrow to move to the cell labeled "move"
5. ctl+c to copy
6. arrow up, arrow right
7. ctl+x to cut paste
8. select the empty row, right click and delete
9. move the cursor to the next "hello"
10. stop record

then you can add a button if you want or change it to loop in the vb editor.
Attached Files
File Type: zip mactest1.zip (6.2 KB, 24 views)
__________________
.: Cythraul Design :: MBA-Forums :.
ebola is offline   Reply With Quote
Old October 9th, 2003, 20:10   #3
polarfox
Banned
 
polarfox's Avatar
 
Join Date: Oct 2003
Posts: 38
Re: question with macros

I love macros they soo cool
polarfox is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 05:26.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.