I’m using excell 2000. I need to know how to create a loop. I have data that is being FTP’d to a text file on a server, From there I import that text file into an excell spreadsheet where I have macro’s set to bring in the data from the imported sheet into the cells desired. I now need to find a way to make sure that every time I open the spreadsheet with new imported data that said data is moved from column a to column b. so every day I update my data and open my spreadsheet I will have a months worth of data. Can anybody out there help me…. I have reached the critical stage..
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
loops for columns (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » loops for columns (2000)
- This topic has 37 replies, 6 voices, and was last updated 20 years, 12 months ago.
AuthorTopicWSvanoskyj
AskWoody LoungerApril 17, 2004 at 2:36 am #403786Viewing 7 reply threadsAuthorReplies-
WSTonyJollans
AskWoody Lounger -
WSTonyJollans
AskWoody Lounger -
WSsdckapr
AskWoody LoungerApril 17, 2004 at 8:41 am #816155Not sure exactly what you need or want. COuld you provide a few more details.
I will assume you have some type of code that runs now when the workbook opens that Imports the text file from the server into the “desired cells”.
If the text file is going in the “desired cells” I am not sure what values are not in the correct place. Where do the values in Col A come from that you want to move to Col B? I am also unclear of why you need to create a loop.To answer what I see as your question (Move Col A to Col
, you can add this code snippet to your macro in the appropriate place. It moves the data from Col A of Sheet1 to Col B of Sheet1 (change the sheet name as appropriate)
With Worksheets("Sheet1") .Range(.Range("A1"), .Range("A65536").End(xlUp)).Cut _ Destination:=.Range("B1") End With
To ensure that it runs you can add your code to the workbook open event to run whenever the file is opened. If this is not what you are after, you will need to provide additional info so we can help.
Steve
-
WSvanoskyj
AskWoody LoungerApril 17, 2004 at 11:54 am #816173ok, first of all thanks for replying to my post. here is my situation…..
1).I have a program/job on an ibm mainframe that strips data from a file – it then creates a new file called FILEA.
2). I then take FILEA and ftp the file into a text file – called FILEB
3). I created an excell spreadsheet with two different sheets (sheet1 & sheet2).
4). I imported FILEB into sheet1 (all this has is one column 12 rows – all data numeric – no headings)
5). I then wrote a macro on sheet2 to bring in the data from the individual cells on sheet1 to their corresponding cells on sheet2
6). Sheet2 consists of headers of dates from column A through column XXXXX.
7). I need a macro that will take my daily updated information on sheet1 and put it in the individual columns on sheet2 daily.sheet1
—————————
2 |
————————— <——– data gets updated every day from program on ibm. so text file gets updated, which means sheet1 gets updated.
3 |
————————–
27|
————————–_5-apr___|____6-apr__|___7-apr__|__8-apr__|__9-apr__|_etc….
2 | 54 | 73 |
———————————|————————- <——– new daily data gets applied to new columns from ibm job/text file/sheet1s (same columnA rows1-12).
3 | 8 | 2 |
———————————| ————————
27 | 34 | 123 |
————————————————————so can anybody help…
-
WSTonyJollans
AskWoody LoungerApril 17, 2004 at 2:36 pm #816189Still don’t really understand exactly what you want, or what you need a loop for. Also, you show Sheet2 with dates going left to right and yet you seem to be asking how to insert your data right to left. Do you really want to put the latest data under the earliest date?
As best I can work out you want to add a new Column at the beginning of Sheet2 and populate Row 1 with a heading date (1 day less than the one which was there before) and then populate the column below (Rows 2 through n+1) from Sheet1 Rows 1 through n. To do this you can combine what I gave you with what sdckapr gave you with a little bit of modification to get ..
ActiveWorkbook.Worksheets(“Sheet2”).Columns(“A:A”).Insert
ActiveWorkbook.Worksheets(“Sheet2”).Range(“A1”).Formula = “=B1-1”With Worksheets(“Sheet1”)
.Range(.Range(“A1”), .Range(“A65536”).End(xlUp)).Cut ActiveWorkbook.Worksheets(“Sheet2”).Range(“A2”)
End With -
WSHansV
AskWoody LoungerApril 17, 2004 at 8:42 pm #816256You re-posted this question in another thread. There was a reply there (post 364425) but I have locked that thread to avoid duplication. Please check out that reply.
-
WSHansV
AskWoody LoungerApril 17, 2004 at 8:42 pm #816257You re-posted this question in another thread. There was a reply there (post 364425) but I have locked that thread to avoid duplication. Please check out that reply.
-
WSJohnBF
AskWoody LoungerApril 17, 2004 at 8:49 pm #816271If you want to retain the columnar format of the data, here’s a simple macro without much error-checking that will probably do what you want, assuming Row 1 is populated with data. However, please consider my warning as an echo of the other posters questions; this isn’t a great way to keep data: you are limited to 256 columns per sheet, and that’s very close to the number of workdays in a year. What will you do when you run out of columns? Also, data structured this way is not easy to run analyses on. I agree with TonyJollans that you would better converting this data to row-wise data, and then use Steve’s approach of adding it to Sheet2 by checking from the bottom up.
Sub Macro1()
Dim rngTarg As Range
Set rngTarg = _
Worksheets(“Sheet2”).Columns(257 – _
Application.WorksheetFunction.CountBlank(Rows(1))).EntireColumn ‘ change Rows(1) to a row that always has data if not Row 1
Worksheets(“Sheet1”).Columns(“A:A”).Copy rngTarg
Application.CutCopyMode = False
Set rngTarg = Nothing
End SubIf there’s no row which reliably always contains data, use this instead:
Sub Macro1()
Dim rngTarg As Range
Dim intCol As Integer
intCol = 1
Do
Set rngTarg = Worksheets(“Sheet2”).Columns(intCol).EntireColumn
intCol = intCol + 1
Loop Until Application.WorksheetFunction.CountBlank(rngTarg) = 65536
Worksheets(“Sheet1”).Columns(“A:A”).Copy rngTarg
Application.CutCopyMode = False
Set rngTarg = Nothing
End SubPost back top this thread if I have not understood your objective.
-
WSJohnBF
AskWoody LoungerApril 17, 2004 at 8:49 pm #816275If you want to retain the columnar format of the data, here’s a simple macro without much error-checking that will probably do what you want, assuming Row 1 is populated with data. However, please consider my warning as an echo of the other posters questions; this isn’t a great way to keep data: you are limited to 256 columns per sheet, and that’s very close to the number of workdays in a year. What will you do when you run out of columns? Also, data structured this way is not easy to run analyses on. I agree with TonyJollans that you would better converting this data to row-wise data, and then use Steve’s approach of adding it to Sheet2 by checking from the bottom up.
Sub Macro1()
Dim rngTarg As Range
Set rngTarg = _
Worksheets(“Sheet2”).Columns(257 – _
Application.WorksheetFunction.CountBlank(Rows(1))).EntireColumn ‘ change Rows(1) to a row that always has data if not Row 1
Worksheets(“Sheet1”).Columns(“A:A”).Copy rngTarg
Application.CutCopyMode = False
Set rngTarg = Nothing
End SubIf there’s no row which reliably always contains data, use this instead:
Sub Macro1()
Dim rngTarg As Range
Dim intCol As Integer
intCol = 1
Do
Set rngTarg = Worksheets(“Sheet2”).Columns(intCol).EntireColumn
intCol = intCol + 1
Loop Until Application.WorksheetFunction.CountBlank(rngTarg) = 65536
Worksheets(“Sheet1”).Columns(“A:A”).Copy rngTarg
Application.CutCopyMode = False
Set rngTarg = Nothing
End SubPost back top this thread if I have not understood your objective.
-
WSJohnBF
AskWoody LoungerApril 17, 2004 at 9:07 pm #816337On a “housekeeping” note, your data is hard to follow because of the way you laid it out; you may have discovered that the Lounge automatically compresses multiple contiguous spaces to one space. The way around this is to use Lounge Tables, and in This Star Post HansV has written Excel code to copy a part of a spreadsheet to a Lounge Post. The same thread also contains code for Word tables. The other alternative is to post a Workbook of up to 100k in size as an attachment, after censoring any confidential data and removing confidential Workbook properties.
-
WSJohnBF
AskWoody LoungerApril 17, 2004 at 9:07 pm #816338On a “housekeeping” note, your data is hard to follow because of the way you laid it out; you may have discovered that the Lounge automatically compresses multiple contiguous spaces to one space. The way around this is to use Lounge Tables, and in This Star Post HansV has written Excel code to copy a part of a spreadsheet to a Lounge Post. The same thread also contains code for Word tables. The other alternative is to post a Workbook of up to 100k in size as an attachment, after censoring any confidential data and removing confidential Workbook properties.
-
-
WSvanoskyj
AskWoody LoungerApril 17, 2004 at 11:54 am #816174ok, first of all thanks for replying to my post. here is my situation…..
1).I have a program/job on an ibm mainframe that strips data from a file – it then creates a new file called FILEA.
2). I then take FILEA and ftp the file into a text file – called FILEB
3). I created an excell spreadsheet with two different sheets (sheet1 & sheet2).
4). I imported FILEB into sheet1 (all this has is one column 12 rows – all data numeric – no headings)
5). I then wrote a macro on sheet2 to bring in the data from the individual cells on sheet1 to their corresponding cells on sheet2
6). Sheet2 consists of headers of dates from column A through column XXXXX.
7). I need a macro that will take my daily updated information on sheet1 and put it in the individual columns on sheet2 daily.sheet1
—————————
2 |
————————— <——– data gets updated every day from program on ibm. so text file gets updated, which means sheet1 gets updated.
3 |
————————–
27|
————————–_5-apr___|____6-apr__|___7-apr__|__8-apr__|__9-apr__|_etc….
2 | 54 | 73 |
———————————|————————- <——– new daily data gets applied to new columns from ibm job/text file/sheet1s (same columnA rows1-12).
3 | 8 | 2 |
———————————| ————————
27 | 34 | 123 |
————————————————————so can anybody help…
-
-
WSsdckapr
AskWoody LoungerApril 17, 2004 at 8:41 am #816156Not sure exactly what you need or want. COuld you provide a few more details.
I will assume you have some type of code that runs now when the workbook opens that Imports the text file from the server into the “desired cells”.
If the text file is going in the “desired cells” I am not sure what values are not in the correct place. Where do the values in Col A come from that you want to move to Col B? I am also unclear of why you need to create a loop.To answer what I see as your question (Move Col A to Col
, you can add this code snippet to your macro in the appropriate place. It moves the data from Col A of Sheet1 to Col B of Sheet1 (change the sheet name as appropriate)
With Worksheets("Sheet1") .Range(.Range("A1"), .Range("A65536").End(xlUp)).Cut _ Destination:=.Range("B1") End With
To ensure that it runs you can add your code to the workbook open event to run whenever the file is opened. If this is not what you are after, you will need to provide additional info so we can help.
Steve
-
WSvanoskyj
AskWoody LoungerApril 17, 2004 at 9:39 pm #816378ok here are the basics. I need to keep track of how many jobs are running within the ibm queue at a certain hour of the day (12 hours a day – hence rows 1 through 12). I need to do this every day until the end of this year (hence the dates). But I need the most current date in the column on the right. anotherwords… 5-april, 6-april, 7-april etc… I hope this gives you guys a better understanding.
-
WSsdckapr
AskWoody LoungerApril 17, 2004 at 10:59 pm #816431Why not do columns 1-2 and then you have a lot more rows to work with.
I am still not clear on what your question/problem really is. Could you detail more what your goal is (not neccessarily how you are doing it now). What do you get (daily) as a text file and what do you want to analze for? There might be better setups than what you are doing (both for importing and for analyses and output)
Steve
-
WSsdckapr
AskWoody LoungerApril 17, 2004 at 10:59 pm #816432Why not do columns 1-2 and then you have a lot more rows to work with.
I am still not clear on what your question/problem really is. Could you detail more what your goal is (not neccessarily how you are doing it now). What do you get (daily) as a text file and what do you want to analze for? There might be better setups than what you are doing (both for importing and for analyses and output)
Steve
-
WSJohnBF
AskWoody Lounger -
WSvanoskyj
AskWoody LoungerApril 20, 2004 at 1:37 pm #817369one more time guys,,, here is a copy of the actual spreadsheet . the column A has all times. this reflects the time the jobs on ibm run. the headings have the date for the different days that it runs (through the end of the year).
St. Louis
3-Apr 4-Apr 5-Apr 6-Apr 7-Apr 8-Apr 9-Apr 10-Apr
3:00 40
3:30 67
4:00 72
4:30 62
5:00 49
5:30 79
6:00 91
6:30 285
7:00 321
7:30 196
8:00 253total jobs 1515 0 0 0 0 0 0 0
this next data is the imported data from the text file that goes into a different sheet (say sheet 2) also found in column b above
40
67
72
62
49
79
91
285
321
196
253
this gets updated evey day same column same rows, Once its updated I then run the following macro to bring the data to sheet 1 (the first sheet above).
Sub Macro1()
‘
‘ Macro1 Macro
‘ Macro recorded 4/20/2004 by Compaq
‘‘
Range(“BL3”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R1C1”
Range(“BL4”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R2C1”
Range(“BL5”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R3C1”
Range(“BL6”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL7”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL8”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL9”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL10”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL11”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL12”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL13”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL16”).Select
Application.CommandBars(“Stop Recording”).Visible = False
End SubI now need to know how to make the data go from column b to c to d etc… every day I open the new data. keep in mind the imported data column A rows 1-12 on sheet 2 never changes just the data does.
also where in my macro would I put the new macro (If you guys havent noticed by now I’m some what a newbe at this) do I have to use your macro in every cell or do I put it in the code up abaove? please help time is running out. -
WSsdckapr
AskWoody LoungerApril 20, 2004 at 2:09 pm #817387I am still not clear what you want exactly you keep talking about moving columns b to c, etc. If you really want to move b to C and C to D, why not just insert a new column A?
Columns("A:A").Insert
It seems to me in your description, that you want to copy the info from Sheet2 in col 1 to the next free col in sheet 1. If so this should do it. Change sheet names as appropriate and starting ranges. (I am not sure what you are doing with your currently posted macro)
It copies from A1 till the end of the data in “Sheet2″and pastes in row 3 of the next available column in “Sheet1”
Sub CopyData() Dim wks1 As Worksheet Dim wks2 As Worksheet Dim rngCopy As Range Dim rngPaste As Range Set wks1 = Worksheets("Sheet1") Set wks2 = Worksheets("Sheet2") With wks2 Set rngCopy = .Range(.Range("A1"), .Range("A65536").End(xlUp)) End With Set rngPaste = wks1.Range("IV3").End(xlToLeft).Offset(0, 1) rngCopy.Copy rngPaste.PasteSpecial xlPasteValues End Sub
If this is not what you are after, could you be a little more specific about what you need?
Steve
-
WSsdckapr
AskWoody LoungerApril 20, 2004 at 2:09 pm #817388I am still not clear what you want exactly you keep talking about moving columns b to c, etc. If you really want to move b to C and C to D, why not just insert a new column A?
Columns("A:A").Insert
It seems to me in your description, that you want to copy the info from Sheet2 in col 1 to the next free col in sheet 1. If so this should do it. Change sheet names as appropriate and starting ranges. (I am not sure what you are doing with your currently posted macro)
It copies from A1 till the end of the data in “Sheet2″and pastes in row 3 of the next available column in “Sheet1”
Sub CopyData() Dim wks1 As Worksheet Dim wks2 As Worksheet Dim rngCopy As Range Dim rngPaste As Range Set wks1 = Worksheets("Sheet1") Set wks2 = Worksheets("Sheet2") With wks2 Set rngCopy = .Range(.Range("A1"), .Range("A65536").End(xlUp)) End With Set rngPaste = wks1.Range("IV3").End(xlToLeft).Offset(0, 1) rngCopy.Copy rngPaste.PasteSpecial xlPasteValues End Sub
If this is not what you are after, could you be a little more specific about what you need?
Steve
-
-
WSvanoskyj
AskWoody LoungerApril 20, 2004 at 1:37 pm #817370one more time guys,,, here is a copy of the actual spreadsheet . the column A has all times. this reflects the time the jobs on ibm run. the headings have the date for the different days that it runs (through the end of the year).
St. Louis
3-Apr 4-Apr 5-Apr 6-Apr 7-Apr 8-Apr 9-Apr 10-Apr
3:00 40
3:30 67
4:00 72
4:30 62
5:00 49
5:30 79
6:00 91
6:30 285
7:00 321
7:30 196
8:00 253total jobs 1515 0 0 0 0 0 0 0
this next data is the imported data from the text file that goes into a different sheet (say sheet 2) also found in column b above
40
67
72
62
49
79
91
285
321
196
253
this gets updated evey day same column same rows, Once its updated I then run the following macro to bring the data to sheet 1 (the first sheet above).
Sub Macro1()
‘
‘ Macro1 Macro
‘ Macro recorded 4/20/2004 by Compaq
‘‘
Range(“BL3”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R1C1”
Range(“BL4”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R2C1”
Range(“BL5”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R3C1”
Range(“BL6”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL7”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL8”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL9”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL10”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL11”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL12”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL13”).Select
ActiveCell.FormulaR1C1 = “=Sheet1!R[-2]C1”
Range(“BL16”).Select
Application.CommandBars(“Stop Recording”).Visible = False
End SubI now need to know how to make the data go from column b to c to d etc… every day I open the new data. keep in mind the imported data column A rows 1-12 on sheet 2 never changes just the data does.
also where in my macro would I put the new macro (If you guys havent noticed by now I’m some what a newbe at this) do I have to use your macro in every cell or do I put it in the code up abaove? please help time is running out. -
WSvanoskyj
AskWoody LoungerApril 20, 2004 at 2:14 pm #817394sd you hit it on the head…. thats exactly what I want to do (your second idea). But how /where do I put this in my macro. Do I need to add it to each cell. or can I edit my macro and put it at the top or bottom… I’m totally unsure of this… and by the way thank you a million times over for all your assistance and those of the panel…
-
WSsdckapr
AskWoody LoungerApril 20, 2004 at 2:18 pm #817396Right now this stands alone. You can “call” this routine when you want to copy ,
CopyData
or you can just add the appropriate lines of code to the end of your routine.
I don’t understand your question about adding it to each cell… The code copies the entire range of data in “one fell swoop”. Could you be more specific about your needs?
Steve
-
WSsdckapr
AskWoody LoungerApril 20, 2004 at 2:18 pm #817397Right now this stands alone. You can “call” this routine when you want to copy ,
CopyData
or you can just add the appropriate lines of code to the end of your routine.
I don’t understand your question about adding it to each cell… The code copies the entire range of data in “one fell swoop”. Could you be more specific about your needs?
Steve
-
WSJohnBF
AskWoody LoungerApril 20, 2004 at 2:26 pm #817400Replace the text of your existing macro with Steve’s. (It was Steve, but you replied to me.) If you need more information on managing macros, please see Legare’s Personal.xls Tutorial Star Post.
-
WSJohnBF
AskWoody LoungerApril 20, 2004 at 2:26 pm #817401Replace the text of your existing macro with Steve’s. (It was Steve, but you replied to me.) If you need more information on managing macros, please see Legare’s Personal.xls Tutorial Star Post.
-
-
WSvanoskyj
AskWoody LoungerApril 20, 2004 at 2:14 pm #817395sd you hit it on the head…. thats exactly what I want to do (your second idea). But how /where do I put this in my macro. Do I need to add it to each cell. or can I edit my macro and put it at the top or bottom… I’m totally unsure of this… and by the way thank you a million times over for all your assistance and those of the panel…
-
-
WSJohnBF
AskWoody Lounger -
WSJohnBF
AskWoody LoungerApril 18, 2004 at 1:34 am #816464Try it this way:
Sub MacroM()
Dim rngTarg As Range
Dim lngRow As Long
Do
lngRow = lngRow + 1
Set rngTarg = Worksheets(“Sheet2”).Cells(lngRow, 2)
Loop Until Application.WorksheetFunction.CountBlank(rngTarg.EntireRow) = 256
Worksheets(“Sheet1”).Columns(“A:A”).CurrentRegion.Copy
rngTarg.PasteSpecial Transpose:=True
Application.CutCopyMode = False
rngTarg.Offset(0, -1).Value = Date
Set rngTarg = Nothing
End Sub -
WSJohnBF
AskWoody LoungerApril 18, 2004 at 1:34 am #816465Try it this way:
Sub MacroM()
Dim rngTarg As Range
Dim lngRow As Long
Do
lngRow = lngRow + 1
Set rngTarg = Worksheets(“Sheet2”).Cells(lngRow, 2)
Loop Until Application.WorksheetFunction.CountBlank(rngTarg.EntireRow) = 256
Worksheets(“Sheet1”).Columns(“A:A”).CurrentRegion.Copy
rngTarg.PasteSpecial Transpose:=True
Application.CutCopyMode = False
rngTarg.Offset(0, -1).Value = Date
Set rngTarg = Nothing
End Sub
-
-
WSvanoskyj
AskWoody LoungerApril 17, 2004 at 9:39 pm #816381ok here are the basics. I need to keep track of how many jobs are running within the ibm queue at a certain hour of the day (12 hours a day – hence rows 1 through 12). I need to do this every day until the end of this year (hence the dates). But I need the most current date in the column on the right. anotherwords… 5-april, 6-april, 7-april etc… I hope this gives you guys a better understanding.
-
WSvanoskyj
AskWoody LoungerApril 18, 2004 at 1:14 pm #816520the date was already inputted by the manager unsure of how he put it there. i just need a simple macro that will update the next column with the same row of data as input from the sheet that had imported my text file. when I open my spreedsheet now every time I open it my text file has different data but that data is in the same column and rows column A rows 1-12. what I need is something that will take that data and put it in the next available column on another sheet that my text file is not imported into.
-
WSJohnBF
AskWoody Lounger -
WSgibbindr
AskWoody LoungerApril 19, 2004 at 4:21 pm #816887And now a completely different solution.
If I understand your problem, what about using the built in TextToColumns command? Select column of data, define how you want to parse it and away you go. You can record the options in a macro for later use. I use this all the time for parsing text files.
Sorry, if this isn’t what you are trying to do. -
WSgibbindr
AskWoody LoungerApril 19, 2004 at 4:21 pm #816888And now a completely different solution.
If I understand your problem, what about using the built in TextToColumns command? Select column of data, define how you want to parse it and away you go. You can record the options in a macro for later use. I use this all the time for parsing text files.
Sorry, if this isn’t what you are trying to do.
-
-
WSJohnBF
AskWoody Lounger
-
-
WSvanoskyj
AskWoody LoungerApril 18, 2004 at 1:14 pm #816521the date was already inputted by the manager unsure of how he put it there. i just need a simple macro that will update the next column with the same row of data as input from the sheet that had imported my text file. when I open my spreedsheet now every time I open it my text file has different data but that data is in the same column and rows column A rows 1-12. what I need is something that will take that data and put it in the next available column on another sheet that my text file is not imported into.
Viewing 7 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
4 hours, 28 minutes ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
14 hours, 48 minutes ago -
Office apps read-only for family members
by
b
17 hours, 25 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
14 hours, 16 minutes ago -
24H2??
by
CWBillow
4 hours, 28 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
1 day, 2 hours ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
2 hours, 19 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
14 hours, 13 minutes ago -
two pages side by side land scape
by
marc
2 days, 15 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 17 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 20 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 22 hours ago -
April 2025 updates out
by
Susan Bradley
3 hours, 56 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 16 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
1 day, 6 hours ago -
Creating an Index in Word 365
by
CWBillow
2 days, 8 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
20 hours, 57 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 12 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 15 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 17 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 15 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days, 9 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 15 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 21 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
14 hours, 22 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
4 days, 5 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 13 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 13 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 22 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
5 days, 6 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.