Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help with "Run-time error €˜438:"

Hi all

I am tracking invoice info. ("GES Invoice11.xls", sheet "GES") to a separate workbook ("Invoice Log.xls", sheet "Sheet1"). BTW, thanks for the code, Bob Phillips and RPIJG

I am getting the following error

Run-time error €˜438
Object doesnt support this property or method

Following is the macro

Sub InvoiceDataTransfer(
Dim iLastRow As Lon
Dim an
ans = MsgBox("Are you sure? Doing so will automatically create a new invoice entry.", vbYesNo
If ans = vbYes The
Workbooks.Open Filename:="C:\data\ges\accounting\invoice log.xls
With ActiveWorkboo
With .Worksheets("Sheet1"
iLastRow = .Cells(Rows.Count, "A").End(xlUp).Row +
..Range("A" & iLastRow).Value = .Worksheets("GES").Range("C7").Valu
..Range("B" & iLastRow).Value = .Worksheets("GES").Range("C4").Valu
..Range("C" & iLastRow).Value = .Worksheets("GES").Range("A10").Valu
..Range("D" & iLastRow).Value = .Worksheets("GES").Range("A12").Valu
..Range("E" & iLastRow).Value = .Worksheets("GES").Range("A13").Valu
..Range("F" & iLastRow).Value = .Worksheets("GES").Range("C35").Valu
..Range("G" & iLastRow).Value = .Worksheets("GES").Range("F17").Valu
..Range("H" & iLastRow).Value = .Worksheets("GES").Range("F18").Valu
..Range("I" & iLastRow).Value = .Worksheets("GES").Range("F19").Valu
End Wit
End Wit
End I
End Su

Any ideas

Thanks in advance for your input
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with "Run-time error ‘438’:

Try Removing .. at the start of each line of code

As you are dealing with 2 workbooks you will also need to ad
Workbooks("("GES Invoice11.xls") after the = sign


..Range("A" & iLastRow).Value = .Worksheets("GES").Range("C7").Valu

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help with "Run-time error ‘438’:

Thanks for your time, Mudraker

It works well now.
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
Run-time error "1004" Select method of range class failed Tallan Excel Discussion (Misc queries) 3 March 7th 07 05:22 PM
Run-time Error in "SENDUSING" configuation value is invalid Annette[_3_] Excel Programming 2 April 5th 04 07:36 PM
"Run-time error 91: Object variable or With block not set" Snedker Excel Programming 0 January 10th 04 09:37 AM
"Run-time error '1004'" Method 'Range' of object '_global' failed. haisat[_2_] Excel Programming 0 October 20th 03 12:13 PM
"Can't Show Modally" - Run-Time Error '400' Problem Bruce B[_2_] Excel Programming 3 July 14th 03 02:01 PM


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