LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Jeni Q
 
Posts: n/a
Default Creating Macro or Code Help?

Greetings,

I have a user who is doing a repetitive action in a spreadsheet
and I'm wondering if there's a better way to do what she's doing. Let me
explain the process.

Sue has a folder that contains 250-300 *.PDF files that have a naming
convention like such: GR005843.pdf. In this folder she also has .xls file
that contains fields like Filename, Date, Last Name, etc.
Each file listed in the Filename column corresponds to a PDF file in the
folder and displays the exact title of the file, e.g. "GR005843.pdf".
Currently, she goes to the first data cell in the column, A2, and inserts a
hyperlink into the XLS file by right-clicking and choosing Hyperlink. In the
Insert Hyperlink dialog box, Link to: Existing File or Web Page is
automatically selected. Look in: defaults to Current Folder (which is good
because that's where the files are). The Text to Display: defaults to the
text that is already in the cell. She types in the file name (GR005843.pdf)
in the Address field and chooses OK. Now the text that was in that cell is
replaced by a hyperlink to the corresponding file in the same folder. Then
she moves to A3 and repeats the same steps. She does this about 250-300
times, depending on how many files are in the monthly batch.

I feel like there should be a better way to do this but can't figure out how
a recorded macro could do so. It's the getting to the next cell part that
confuses me. I'm guessing it'll take some VBA code, but I'm not well versed
in that. Can anyone provide some suggestions or advice for me? Can you tell
me if what I'm trying to do is impossible?

I'll be happy to answer any questions or clarify something I did not explain
well.
Thanks in advance for your help.

Jeni Q



 
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
Creating a macro Gene Goldenfeld New Users to Excel 10 May 5th 05 04:28 PM
Creating a macro in excel Not sure what I am doing Excel Worksheet Functions 1 March 25th 05 11:04 PM
Macro to simply bring up the Find dialogue box?? marika1981 Excel Discussion (Misc queries) 14 January 14th 05 10:47 PM
macro code shortcut Brian Excel Worksheet Functions 4 December 15th 04 08:59 PM
Zip Code Macro Ken Wright Excel Worksheet Functions 0 December 9th 04 07:55 AM


All times are GMT +1. The time now is 09:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"