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

Can anyone suggest an easy way to switch the contnts of rows in a spreadsheet
via VBA while keeping the original relative formulas. For example:

Column-- A B
Row
1 1 Discuss Using Spreadsheets For Agendas
2 +a1+1 Discuss what we iwll eat for lunch
3 +a2+1 Discuss when we will break for the day
4 +a3+1 Discuss where we will eat dinner

If I want a macro that will switch rows 3 and 4, but want the result to be
as follows:

Column-- A B
Row
1 1 Discuss Using Spreadsheets For Agendas
2 +a1+1 Discuss what we iwll eat for lunch
3 +a2+1 Discuss where we will eat dinner
4 +a3+1 Discuss when we will break for the day

When I use insert, row 4 (the old 3) refers to row 2, not the new row three.

Thanks,
Craig

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
Switching between workbooks Jim Excel Discussion (Misc queries) 5 July 28th 07 03:19 AM
Switching from collumns to rows Shazza Excel Discussion (Misc queries) 3 February 20th 07 12:15 PM
Switching rows and columns fairmeadow Excel Discussion (Misc queries) 1 April 18th 06 11:22 AM
Switching rows and columns Brurobiney Excel Discussion (Misc queries) 3 September 8th 05 04:44 AM
Switching between Worksheets Dave Peterson[_3_] Excel Programming 0 September 8th 04 02:42 AM


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