LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Problems with macro

I'm trying to run a macro created by an ex-employee but after weeks of
successfully running, the macro is now creating error messages. I
think the error may have arisen when I inadvertently chose to save
changes to the sheet which contains the macro. Unfortunately, I have
no experience fo VBA coding and neither does anyone else at my place
of work. I desperately need help otherwise I can't run a suite of
reports which are required daily. The first error code starts at the
line;

Cells(50, 2).Select
Selection.End(xlDown).Select
ActiveCell.Offset(2, -1).Select

I've been advised to change this to

lastRow = Range("b65536").End(xlUp).Row
range ("b50:b" & lastRow).select

However, it then highlights the next line of code

Selection.TextToColumns Destination:=Cells(1, 1),
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Space:=True,
Other:=True, _
OtherChar:="(", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3,
9)), TrailingMinusNumbers:=True


Any help anyone could offer would be greatly appreciated.

John

 
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
Macro-writing problems Richard Excel Discussion (Misc queries) 6 January 20th 07 10:45 PM
Macro problems Heine Excel Worksheet Functions 9 October 31st 06 11:01 AM
Macro Problems gillj Excel Discussion (Misc queries) 1 May 6th 06 11:51 AM
Problems in running a macro in another workbook dhatul Excel Discussion (Misc queries) 3 January 20th 06 08:01 AM
Macro problems Retta Excel Worksheet Functions 2 May 18th 05 10:39 PM


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