Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I apologize for such a novice question, but, what line of VBA would I be able to use in my module to get external data from another workbook spreadsheet? My current code is below, it would need to be the first step of the function: Sub format() Range("B1").Select Do Do Until Selection = "" Selection = Left$(Selection, (Len(Selection) - 3)) Selection.Offset(1, 0).Select Exit Do Loop Loop Until Selection = "" Range("A:A,C:C,E:F,I:K,L:L,O:P").EntireColumn.Dele te Range("A:A").EntireColumn.Insert Range("B:B").EntireColumn.Insert Range("f:f").EntireColumn.Insert Columns(7).Cut Columns(2).Insert Range("C:C").EntireColumn.Delete Rows("1:2").Delete End sub -- andysgirl8800 ------------------------------------------------------------------------ andysgirl8800's Profile: http://www.excelforum.com/member.php...o&userid=34752 View this thread: http://www.excelforum.com/showthread...hreadid=547498 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
External Data Warning Message - I have No External Data in wrkbk | Excel Discussion (Misc queries) | |||
Getting External Data based on criteria insde of the external data | Excel Discussion (Misc queries) | |||
updating external data sheet causes loss of data on linked pages | Excel Worksheet Functions | |||
insert entire row for new data, external data range doesnt work | Excel Programming | |||
Need advice : consolidating data from multiple CSV files in Excel - External data handling | Excel Programming |