uveenhacked
New Member
- Joined
- Nov 18, 2005
- Messages
- 28
i have tried recording a macro and assign an button for it but the code don't look good (lots of scroll and range selct) and in sometimes it end up with an error.
this is what i want to do...
-------
on button click...
save as new file name sequence number (store001.xls ...) on same folder
select sheet name "INV",
select range e3 to E65536
copy data and paste (hard code) to G3 to G65536 respectively
delete H3 - H65536 up to column AM3 to AM65536
select range G3 to G65536
copy data and paste (hard code) to H3 to H65536 respectively
select sheet name "01"
select range D3 to D65536
clear
select range H3 to H65536
clear
set all values of the range C3 to C65536 to 1
select H3
end
-------
hope you guys can help me, i am really new to this vba stuff.
Thanks in advance
this is what i want to do...
-------
on button click...
save as new file name sequence number (store001.xls ...) on same folder
select sheet name "INV",
select range e3 to E65536
copy data and paste (hard code) to G3 to G65536 respectively
delete H3 - H65536 up to column AM3 to AM65536
select range G3 to G65536
copy data and paste (hard code) to H3 to H65536 respectively
select sheet name "01"
select range D3 to D65536
clear
select range H3 to H65536
clear
set all values of the range C3 to C65536 to 1
select H3
end
-------
hope you guys can help me, i am really new to this vba stuff.
Thanks in advance